View as Markdown

API reference: @salmonui/data-grid/engine

createLocalDataSourcefunction

import { createLocalDataSource } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid.

function createLocalDataSource<Row>(rows?: readonly Row[], options?: LocalDataSourceOptions<Row>): LocalDataSource<Row>;

In-memory data source (mode: 'local'). Rows are held by reference and the array is treated as immutable: every change produces a new array and one event. The engine runs every pipeline stage locally.