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

Function syncDataFromCollection

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

Source from the content-addressed store, hash-verified

343
344 // Helper to sync data array from collection in correct order
345 const syncDataFromCollection = (
346 currentCollection: Collection<any, any, any>,
347 ) => {
348 setData((prev) =>
349 reconcile(Array.from(currentCollection.values()))(prev).filter(Boolean),
350 )
351 }
352
353 const [getDataResource] = createResource(
354 () => ({ currentCollection: collection() }),

Callers 1

useLiveQueryFunction · 0.70

Calls 3

filterMethod · 0.80
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…