Open History to see the last commit
const pooledLiveQueries: object;
Defined in: packages/db/src/query/pooled-live-query.ts:878
Pooled live queries for framework hooks. Pass it as pool in a hook's
query config to serve equality-filtered queries of one shape from a shared
partition. Apps that do not pass it do not bundle pooling.
Type Declaration#
createPooledLiveQuery()#
createPooledLiveQuery: (query, __namedParameters) =>
| Collection<any, any, any, StandardSchemaV1<unknown, unknown>, any>
| undefined;
A pooled view for a query a partition can serve, or undefined. The view is typed as the Collection it stands in for.
Parameters#
query#
__namedParameters#
gcTime?#
number = 5_000
Returns#
| Collection<any, any, any, StandardSchemaV1<unknown, unknown>, any>
| undefined
getPooledQueryIdentity()#
getPooledQueryIdentity: (query) => string | undefined;
The identity of a query a partition can serve with no residual conjunct:
its source and its eq fields and literals, which determine its rows.
Undefined for any other query, which keeps the full structural identity.
Parameters#
query#
Returns#
string | undefined