Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

resolveLiveQueryValue.md

42 lines929 Bytes

function resolveLiveQueryValue(value, __namedParameters): 
  | Collection<any, any, any, StandardSchemaV1<unknown, unknown>, any>
  | null;

Defined in: packages/db/src/live-query-options.ts:251

Resolve an adapter's query value to what its observer watches: null for a disabled query, an existing Collection with sync started, or a live query. A query builder whose shape a shared partition can serve gets a pooled view instead of its own live-query Collection.

Parameters

value

unknown

__namedParameters

gcTime?

number

pool?

boolean = true

startSync?

boolean = true

Returns

| Collection<any, any, any, StandardSchemaV1<unknown, unknown>, any> | null