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

Function state

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

Source from the content-addressed store, hash-verified

535
536 returnedRef.current = {
537 get state() {
538 if (!stateCache) {
539 stateCache = new Map(entries)
540 }
541 return stateCache
542 },
543 get data() {
544 if (!dataCache) {
545 dataCache = entries.map(([, value]) => value)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected