# BaseState

Canonical page: https://www.adaptabletools.com/docs/reference/basestate

Base of every AdapTable State section.

`Revision` is how a newer Initial State updates one section without touching the others.

```ts title="TypeScript"
export interface BaseState 
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [Revision](https://www.adaptabletools.com/docs/reference/basestate.md#revision) | `number \| \{ Key: number; UpdateStrategy: 'Override' \| 'KeepUserDefined'; \}` | Version of this section.<br/><br/>A number, or `{ Key, UpdateStrategy }`. AdapTable compares `Key` (or the number) with the Revision already persisted for this section. When the Initial State key is higher, the section is updated:<br/><br/>- `Override` (the default) replaces the persisted section with the Initial State section.<br/>- `KeepUserDefined` applies the Initial State section, then appends objects the user added (their `Source` is not `InitialState`) back onto each array. |

## Property Details

### Revision

Version of this section.

A number, or `{ Key, UpdateStrategy }`. AdapTable compares `Key` (or the number) with the Revision already persisted for this section. When the Initial State key is higher, the section is updated:

- `Override` (the default) replaces the persisted section with the Initial State section.
- `KeepUserDefined` applies the Initial State section, then appends objects the user added (their `Source` is not `InitialState`) back onto each array.

```ts title="TypeScript"
Revision?: number | {
        Key: number;
        UpdateStrategy: 'Override' | 'KeepUserDefined';
    };
```

###### Property Value

`number | \{ Key: number; UpdateStrategy: 'Override' | 'KeepUserDefined'; \}`
