# DataGridInfiniteScrollFacade (@salmonui/data-grid)

> The DataGridInfiniteScrollFacade type of @salmonui/data-grid: api.engine.infiniteScroll: the infiniteScroll module façade. loadNext() reads the block after the last loaded row, retry() re-reads failed blocks, reload() re-reads from the start (infiniteScroll.loadNext / retry / reload through engine.dispatch); getStatus() is the load state. Until the lazy infinite chunk is installed (right after mount on the client), commands are rejected with moduleLoading, getStats() and isRowLoaded() return undefined and getStatus() is the at-rest state.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridInfiniteScrollFacade

```ts
import type { DataGridInfiniteScrollFacade } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: type

```ts
type DataGridInfiniteScrollFacade<Row = unknown> = Omit<InfiniteScrollFacade<Row>, 'getStats' | 'isRowLoaded'> & {
    getStats(): InfiniteScrollStats | undefined;
    isRowLoaded(index: number): boolean | undefined;
};
```

`api.engine.infiniteScroll`: the `infiniteScroll` module façade.
`loadNext()` reads the block after the last loaded row, `retry()` re-reads
failed blocks, `reload()` re-reads from the start (`infiniteScroll.loadNext`
/ `retry` / `reload` through `engine.dispatch`); `getStatus()` is the load
state. Until the lazy infinite chunk is installed (right after mount on the
client), commands are rejected with `moduleLoading`, `getStats()` and
`isRowLoaded()` return undefined and `getStatus()` is the at-rest state.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `getStatus` | `getStatus: () => InfiniteScrollState;` | inherited | Load state, exact total (null while unknown) and loaded row count. |
| `ensureRange` | `ensureRange: (start: number, end: number) => void;` | inherited | Viewport sink: the renderer reports the rendered rows `[start, end)` when its row window changes (never per scroll frame). Schedules loads; does not change the slice until a load settles. |
| `loadNext` | `loadNext: (payload?: PayloadOf<InfiniteScrollLoadNextCommand> \| undefined) => CommandResult;` | inherited |  |
| `reload` | `reload: (payload?: PayloadOf<InfiniteScrollReloadCommand> \| undefined) => CommandResult;` | inherited |  |
| `retry` | `retry: (payload?: PayloadOf<InfiniteScrollRetryCommand> \| undefined) => CommandResult;` | inherited |  |
| `getStats` | `getStats: () => InfiniteScrollStats \| undefined;` | inherited |  |
| `isRowLoaded` | `isRowLoaded: (index: number) => boolean \| undefined;` | inherited |  |
