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

Function waitForLeader

packages/offline-transactions/tests/harness.ts:246–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244 const executor = startOfflineExecutor(config)
245
246 const waitForLeader = async () => {
247 // Wait for full initialization including loading pending transactions
248 await executor.waitForInit()
249 if (!executor.isOfflineEnabled) {
250 throw new Error(`Executor did not become leader`)
251 }
252 }
253
254 return {
255 executor,

Callers

nothing calls this directly

Calls 1

waitForInitMethod · 0.80

Tested by

no test coverage detected