# createInitialEditState (@salmonui/data-grid/engine/edit)

> The createInitialEditState function of @salmonui/data-grid/engine/edit: The state createEditModule().initialState(options) returns: no drafts, no active editor, version 0. Pure; a renderer that loads the module lazily renders this at-rest state until the module is loaded.

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

```ts
import { createInitialEditState } from '@salmonui/data-grid/engine/edit';
```

Also exported from `@salmonui/data-grid/engine/edit-state`.

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

## Reference

Kind: function

```ts
function createInitialEditState<Row>(options: DataGridOptions<Row>): EditState;
```

The state `createEditModule().initialState(options)` returns: no drafts, no
active editor, version 0. Pure; a renderer that loads the module lazily
renders this at-rest state until the module is loaded.
