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

Function data

packages/react-db/src/useLiveQuery.ts:543–548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

541 return stateCache
542 },
543 get data() {
544 if (!dataCache) {
545 dataCache = entries.map(([, value]) => value)
546 }
547 return singleResult ? dataCache[0] : dataCache
548 },
549 collection: snapshot.collection,
550 status: snapshot.collection.status,
551 isLoading: snapshot.collection.status === `loading`,

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected