MCPcopy Create free account
hub / github.com/TanStack/db / preload

Method preload

packages/db/src/collection/index.ts:473–475  ·  view source on GitHub ↗

* Preload the collection data by starting sync if not already started * Multiple concurrent calls will share the same promise

()

Source from the content-addressed store, hash-verified

471 * Multiple concurrent calls will share the same promise
472 */
473 public preload(): Promise<void> {
474 return this._sync.preload()
475 }
476
477 /**
478 * Get the current value for a key (virtual derived state)

Callers 15

stateWhenReadyMethod · 0.95
toArrayWhenReadyMethod · 0.95
useLiveQueryFunction · 0.45
createMutationsTestSuiteFunction · 0.45
createJoinsTestSuiteFunction · 0.45
createCollationTestSuiteFunction · 0.45

Calls

no outgoing calls

Tested by 7

createReadyCollectionFunction · 0.36
createBasicTestsFunction · 0.36
createJoinTestsFunction · 0.36
createSubqueryTestsFunction · 0.36
createOrderByTestsFunction · 0.36
createOrderByBugTestsFunction · 0.36
getConfigFunction · 0.36