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

Method getWithVirtualProps

packages/db/src/collection/state.ts:338–346  ·  view source on GitHub ↗

* Get the current value for a key enriched with virtual properties.

(
    key: TKey,
  )

Source from the content-addressed store, hash-verified

336 * Get the current value for a key enriched with virtual properties.
337 */
338 public getWithVirtualProps(
339 key: TKey,
340 ): WithVirtualProps<TOutput, TKey> | undefined {
341 const value = this.get(key)
342 if (value === undefined) {
343 return undefined
344 }
345 return this.enrichWithVirtualProps(value, key)
346 }
347
348 /**
349 * Get the current value for a key (virtual derived state)

Callers 1

getMethod · 0.80

Calls 2

getMethod · 0.95

Tested by

no test coverage detected