Privacy-aware state persistence
Saved grid state (columns, sort, filters) is opt-in, defaults to excluding filter values and selected row IDs, supports storage choice and expiry, and offers an encryption or serialization hook. It also provides a one-call purge.
Planned. This page shows the specification from issue #209. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with persistence disabled and a storage inspector panel.
Expected behavior
The inspector shows exactly the stored keys and values. Filter values are absent unless explicitly included. Purge removes everything and the inspector confirms an empty state.
Planned API surface
persistence.enabledpersistence.storage: 'memory' | 'session' | 'local' | custompersistence.includepersistence.excludeFilterValuespersistence.ttlMspersistence.serializepersistence.deserializeclearPersistedStateAcceptance criteria
- Persistence is off by default. (pending)
- Filter values and selection are excluded by default when enabled. (pending)
- Expired state is ignored and deleted on load. (pending)
- Corrupt or tampered state is discarded safely and validated against a schema. (pending)
- clearPersistedState removes all keys under the grid namespace. (pending)