TanStack

createLiveQueryWindowController

Function: createLiveQueryWindowController()

ts
function createLiveQueryWindowController<T, TKey>(collection, options): LiveQueryWindowController<T, TKey>;

Defined in: packages/db/src/live-query-window-controller.ts:1016

Internal

Create an internal forward-window controller for an ordered live query.

This factory is unstable while RFC #1623 is being implemented.

Type Parameters

T

T extends object

TKey

TKey extends string | number

Parameters

collection

Collection<T, TKey, any, StandardSchemaV1<unknown, unknown>, T> | null | undefined

options

CreateLiveQueryWindowControllerOptions = {}

Returns

LiveQueryWindowController<T, TKey>