QueryCollectionSnapshot interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface QueryCollectionSnapshot<TRow>

What a query collection shows for its range. A new object on every change.

Properties

query

readonly query: QueryCollectionQuery;

No documentation.

total

readonly total: number | null;

The rows that match the query, or null until it is known.

version

readonly version: number;

No documentation.

start

readonly start: number;

The range set with setRange, limited to total.

count

readonly count: number;

No documentation.

rows

readonly rows: readonly QueryRow<TRow>[];

One entry per position of the range, from start: the row, or a placeholder.

loading

readonly loading: boolean;

Whether rows of the range are being loaded.

error

readonly error: BridgeError | undefined;

The failure of the latest load of the range, until a load succeeds or retry().