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/rejectLiveQueryInput.md
rejectLiveQueryInput
ts
function rejectLiveQueryInput(collections, rejection): never;Defined in: packages/db/src/live-query-options.ts:66
Release the sync starts a rejected query input deferred, then rethrow its rejection. A framework hook calls this around its own render work, so a query the hook rejects leaves no source deferred and a later reader can start it. A render that throws after the hook returns, such as in a sibling hook, is not a rejection of this input: like any render that never commits, it releases its deferral through releaseDeferredOnReclaim when garbage collection reclaims its live query. As for a DbClient preload, the rejection wins over a source whose resumed start fails; that source records its own failure.
Parameters#
collections#
DeferredLiveQueryCollections | undefined
rejection#
unknown
Returns#
never