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

Function getStateValue

packages/db/tests/collection.test.ts:29–32  ·  view source on GitHub ↗
(
  collection: { state: Map<TKey, T> },
  key: TKey,
)

Source from the content-addressed store, hash-verified

27} from '../src/types'
28
29const getStateValue = <T extends object, TKey extends string | number>(
30 collection: { state: Map<TKey, T> },
31 key: TKey,
32) => stripVirtualProps(collection.state.get(key))
33
34const getStateEntries = <
35 T extends object,

Callers 1

collection.test.tsFile · 0.70

Calls 2

stripVirtualPropsFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…