Skip to content

Home > @liquidrazor/list-display > createStaticSource

createStaticSource() function

Creates a simple, static data source that just returns an initial snapshot of rows and does not stream patches.

Signature:

typescript
createStaticSource: <TRow = any, TRowId extends RowId = RowId>(options?: StaticSourceOptions<TRow>) => DataSource<TRow, TRowId>

Parameters

Parameter

Type

Description

options

StaticSourceOptions<TRow>

(Optional)

Returns:

DataSource<TRow, TRowId>