Skip to content

Commit f8cd6fe

Browse files
committed
remove public trackLoadPromise
1 parent 8b1c68d commit f8cd6fe

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

packages/db/src/collection/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,6 @@ export class CollectionImpl<
371371
this._sync.startSync()
372372
}
373373

374-
/**
375-
* Tracks a load promise for isLoadingSubset state.
376-
* @internal This is for internal coordination (e.g., live-query glue code), not for general use.
377-
*/
378-
public trackLoadPromise(promise: Promise<void>): void {
379-
this._sync.trackLoadPromise(promise)
380-
}
381-
382374
/**
383375
* Preload the collection data by starting sync if not already started
384376
* Multiple concurrent calls will share the same promise

packages/db/src/query/live/collection-subscriber.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class CollectionSubscriber<
9292
this.subscriptionLoadingPromises.set(subscription, {
9393
resolve: resolve!,
9494
})
95-
this.collectionConfigBuilder.liveQueryCollection!.trackLoadPromise(
95+
this.collectionConfigBuilder.liveQueryCollection!._sync.trackLoadPromise(
9696
promise
9797
)
9898
}

0 commit comments

Comments
 (0)