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

Function data

packages/svelte-db/src/useLiveQuery.svelte.ts:475–489  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

473 return state
474 },
475 get data() {
476 const currentCollection = collection
477 if (currentCollection) {
478 const config =
479 currentCollection.config as CollectionConfigSingleRowOption<
480 any,
481 any,
482 any
483 >
484 if (config.singleResult) {
485 return internalData[0]
486 }
487 }
488 return internalData
489 },
490 get collection() {
491 return collection
492 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected