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

Method get

packages/db/src/collection/index.ts:480–482  ·  view source on GitHub ↗

* Get the current value for a key (virtual derived state)

(key: TKey)

Source from the content-addressed store, hash-verified

478 * Get the current value for a key (virtual derived state)
479 */
480 public get(key: TKey): WithVirtualProps<TOutput, TKey> | undefined {
481 return this._state.getWithVirtualProps(key)
482 }
483
484 /**
485 * Check if a key exists in the collection (virtual derived state)

Callers 12

valuesMethod · 0.95
entriesMethod · 0.95
removeIndexMethod · 0.45
validateDataMethod · 0.45
updateMethod · 0.45
currentStateAsChangesFunction · 0.45
filterFnFunction · 0.45
startSyncMethod · 0.45
createSyncMetadataApiMethod · 0.45
filterFnMethod · 0.45

Calls 1

getWithVirtualPropsMethod · 0.80

Tested by

no test coverage detected