View as Markdown

API reference: @salmonui/data-grid/server

getDataGridInitialRangefunction

import { getDataGridInitialRange } from '@salmonui/data-grid/server';
function getDataGridInitialRange(options: DataGridInitialRangeOptions): DataGridInitialRange;

The deterministic range DataGrid renders on the server and during hydration, before the viewport is measured. Server work and markup depend on this range only, never on the total row count.