DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/type-aliases/LiveQueryHookConfig.md
LiveQueryHookConfig
ts
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?#
ts
optional pool: PooledLiveQueries;Type Parameters#
TContext#
TContext extends Context
TResult#
TResult extends object = RootQueryResult<TContext>