View as Markdown

API reference: @salmonui/data

RangeSourceSnapshotinterface

import type { RangeSourceSnapshot } from '@salmonui/data';
interface RangeSourceSnapshot<T> {
    readonly rows: readonly T[];
    readonly range: Range | null;
    readonly loading: boolean;
    readonly error: unknown;
}
RangeSourceSnapshot members (4)
NameSignatureDescription
rowsreadonly rows: readonly T[];

Rows of the last completed range (kept while the next one loads).

rangereadonly range: Range | null;

The range the rows belong to, or null before the first load.

loadingreadonly loading: boolean;
errorreadonly error: unknown;