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

Method onFirstReady

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

* Register a callback to be executed when the collection first becomes ready * Useful for preloading collections * @param callback Function to call when the collection first becomes ready * @example * collection.onFirstReady(() => { * console.log('Collection is ready for the first t

(callback: () => void)

Source from the content-addressed store, hash-verified

431 * })
432 */
433 public onFirstReady(callback: () => void): void {
434 return this._lifecycle.onFirstReady(callback)
435 }
436
437 /**
438 * Check if the collection is ready for use

Callers 6

useLiveQueryFunction · 0.45
useLiveQueryFunction · 0.45
applyTransactionMethod · 0.45
injectLiveQueryFunction · 0.45
preloadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected