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

Function waitForVueUpdate

packages/vue-db/tests/useLiveQuery.test.ts:79–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77
78// Helper function to wait for Vue reactivity
79async function waitForVueUpdate() {
80 await nextTick()
81 // Additional small delay to ensure collection updates are processed
82 await new Promise((resolve) => setTimeout(resolve, 50))
83}
84
85// Helper function to poll for a condition until it passes or times out
86async function waitFor(fn: () => void, timeout = 2000, interval = 20) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected