@gridstorm/plugin-state-persistence
v0.1.2
Published
GridStorm state persistence plugin — save and restore grid state
Maintainers
Readme
@gridstorm/plugin-state-persistence
Save and restore grid state to localStorage or a custom adapter.
Install
npm install @gridstorm/plugin-state-persistenceUsage
import { StatePersistencePlugin } from '@gridstorm/plugin-state-persistence';
const grid = createGridEngine({
plugins: [StatePersistencePlugin({ storageKey: 'my-grid', autoSave: true })],
});Features
- Auto-save with debounce
- localStorage default adapter
- Custom storage adapters
- Include/exclude state slices
- JSON export/import
Documentation
License
MIT
