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/bindLiveQueryWindow.md
bindLiveQueryWindow
ts
function bindLiveQueryWindow(
previous,
update,
uncommitted?): LiveQueryWindowBinding;Defined in: packages/db/src/live-query-window-binding.ts:111
Bind an infinite-query update. Returns previous when it still serves the update; otherwise returns a new binding whose controller the adapter subscribes and later disposes.
uncommitted is a binding built by an earlier update that never took effect, such as a React render that did not commit. When it answers this update, its window collection is reused instead of compiling another.
Parameters#
previous#
LiveQueryWindowBinding | null
update#
uncommitted?#
LiveQueryWindowBinding | null