BaseState

View as Markdown

Base of every AdapTable State section.

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

TypeScript
export interface

Properties

PropertyTypeDescription
Revisionnumber | \{ Key: number; UpdateStrategy: 'Override' | 'KeepUserDefined'; \}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.

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.
TypeScript
Revision?: number | {
        Key: number;
        UpdateStrategy: 'Override' | 'KeepUserDefined';
    };
Property Value

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