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/functions/getLiveQueryKey.md
getLiveQueryKey
ts
function getLiveQueryKey(input): LiveQueryKey | undefined;Defined in: packages/db/src/live-query-adapter.ts:51
The queryKey of a config-object query input, if it supplies one. An empty key is absent, as it is for getLiveQueryHash, so a hook and a DbClient preload agree on the query's identity.
Parameters#
input#
unknown
Returns#
LiveQueryKey | undefined