> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface: EditorStatePort<Input>

> The editor's input, losslessly: it is the recovery checkpoint.

[browser](https://docs.bijection.com/api/modules/browser).EditorStatePort

The editor's input, losslessly: it is the recovery checkpoint.

## Type parameters

| Name |
| :- |
| `Input` |

## Hierarchy

* **`EditorStatePort`**

  ↳ [`OperationEditor`](https://docs.bijection.com/api/interfaces/browser.OperationEditor)

## Methods

### read

▸ **read**(): `Input`

The current input. Bijection reads it directly before an attempt and
before capture, so a delayed change notification cannot be missed.

#### Returns

`Input`

***

### subscribe

▸ **subscribe**(`listener`): () => `void`

Notify after edits, including programmatic ones.

#### Parameters

| Name | Type |
| :- | :- |
| `listener` | () => `void` |

#### Returns

`fn`

▸ (): `void`

##### Returns

`void`

***

### load

▸ **load**(`state`): `void`

Establish both the baseline and the current input, and clear the
previous interaction's errors, touched state and submission history.
Called for every recovered draft, reset and new draft, even when the
values are equal. Notifications it causes synchronously are ignored.

#### Parameters

| Name | Type |
| :- | :- |
| `state` | [`EditorState`](https://docs.bijection.com/api/modules/browser#editorstate)\<`Input`> |

#### Returns

`void`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.