Skip to content

Documentation / @super-line/react / LiveQueryState

Interface: LiveQueryState<Row>

Defined in: index.ts:54

State returned by useLiveQuery.

Type Parameters

Row

Row

Properties

error?

optional error?: unknown

Defined in: index.ts:60

Set if the subscription's ready rejected (denial, timeout).


ready

ready: boolean

Defined in: index.ts:58

True once the initial snapshot has been applied. False while idle.


rows

rows: Row[]

Defined in: index.ts:56

Current rows (stable identity between changes; [] while idle).


sub

sub: LiveRowSet<Row> | undefined

Defined in: index.ts:62

The underlying live set (undefined while idle). A window, not ownership — the hook closes it.

Released under the MIT License.