# InfiniteScrollState (@salmonui/data-grid/engine/infinite)

> The InfiniteScrollState interface of @salmonui/data-grid/engine/infinite: The infiniteScroll module slice (snapshot.modules.infiniteScroll); replaced once per settled load.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-infinite/InfiniteScrollState

```ts
import type { InfiniteScrollState } from '@salmonui/data-grid/engine/infinite';
```

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

## Reference

Kind: interface

```ts
interface InfiniteScrollState {
    readonly active: boolean;
    readonly version: number;
    readonly generation: number;
    readonly status: InfiniteStatus;
    readonly error: unknown;
    readonly totalRowCount: number | null;
    readonly loadedRowCount: number;
    readonly hasMore: boolean;
}
```

The `infiniteScroll` module slice (`snapshot.modules.infiniteScroll`); replaced once per settled load.

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `active` | `readonly active: boolean;` |  | The module serves the main read (remote source, no grouping). |
| `version` | `readonly version: number;` |  | Bumped whenever the loaded blocks change. |
| `generation` | `readonly generation: number;` |  | Bumped when the blocks are dropped for a new query (the renderer scrolls back to the top). |
| `status` | `readonly status: InfiniteStatus;` |  |  |
| `error` | `readonly error: unknown;` |  |  |
| `totalRowCount` | `readonly totalRowCount: number \| null;` |  | Exact row count: the source total, or the loaded end once the last block arrived; null while unknown. |
| `loadedRowCount` | `readonly loadedRowCount: number;` |  | Rows held in memory. |
| `hasMore` | `readonly hasMore: boolean;` |  | Unknown total only: more rows may follow the loaded end (a loading row is shown there). |
