State serialisation and hydration
The grid can export its persistable state as versioned JSON: columns, query, selection, viewport and expanded groups. It can import the same JSON at creation or at runtime. Migrations handle older versions, enabling saved views and SSR hydration.
Planned. This page shows the specification from issue #177. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with three saved view slots, all empty.
Expected behavior
Loading restores only the included slices. The legacy sample is migrated, and a migration notice appears. An invalid JSON payload is rejected without changing the current state.
Planned API surface
api.exportStateapi.importStateGridOptions.initialStatePersistedState.versionGridOptions.stateMigrationsStatePersistOptions.includeAcceptance criteria
- Export and import round-trips produce an identical persisted-state hash (pending)
- Import is atomic and emits a single commit (pending)
- Unknown column ids in imported state are dropped with a warning (pending)
- Migrations run in version order (pending)