MCPcopy Index your code
hub / github.com/TanStack/db / syncDataFromCollection

Function syncDataFromCollection

packages/vue-db/src/useLiveQuery.ts:361–366  ·  view source on GitHub ↗
(
    currentCollection: Collection<any, any, any>,
  )

Source from the content-addressed store, hash-verified

359
360 // Helper to sync data array from collection in correct order
361 const syncDataFromCollection = (
362 currentCollection: Collection<any, any, any>,
363 ) => {
364 internalData.length = 0
365 internalData.push(...Array.from(currentCollection.values()))
366 }
367
368 // Track current unsubscribe function
369 let currentUnsubscribe: (() => void) | null = null

Callers 1

useLiveQueryFunction · 0.70

Calls 2

fromMethod · 0.80
valuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…