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

LiveQueryHookConfig.md

33 lines814 Bytes

type LiveQueryHookConfig<TContext, TResult> = LiveQueryCollectionConfig<TContext, TResult> & object;

Defined in: packages/db/src/query/live/types.ts:131

A live query config that a framework hook accepts. Pass pooledLiveQueries as pool to serve the query from a shared equality partition when its shape allows. A config with any option other than query, gcTime, and pool compiles its own Collection.

Type Declaration

pool?

optional pool: PooledLiveQueries;

Type Parameters

TContext

TContext extends Context

TResult

TResult extends object = RootQueryResult<TContext>