# StageContext (@salmonui/data-grid/engine)

> The StageContext interface of @salmonui/data-grid/engine.

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

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

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

## Reference

Kind: interface

```ts
interface StageContext<Row, State> {
    readonly query: DataQuery;
    readonly columns: ColumnSnapshot<Row>;
    readonly state: State;
    readonly locale: string;
    readonly timeZone: string | undefined;
    readonly sourceIndexOf?: (rowId: RowId) => number;
    readonly sourceChange?: {
        readonly from: readonly Row[];
        readonly delta: RowDelta;
    } | null;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `query` | `readonly query: DataQuery;` |  |  |
| `columns` | `readonly columns: ColumnSnapshot<Row>;` |  |  |
| `state` | `readonly state: State;` |  |  |
| `locale` | `readonly locale: string;` |  |  |
| `timeZone` | `readonly timeZone: string \| undefined;` |  | The grid `timeZone` option (undefined: the runtime's local zone). |
| `sourceIndexOf` | `readonly sourceIndexOf?: (rowId: RowId) => number;` | optional | Source index of a row id through the engine id index, or -1. |
