@nanostores/persistent
Nano Stores Persistent
A smart store for Nano Stores state manager to keep data in localStorage
and synchronize changes between browser tabs.
- Small. From 296 bytes (minified and brotlied). Zero dependencies. It uses Size Limit to control size.
- It has good TypeScript.
- Framework agnostic. It supports SSR.
localStoragecan be switched to another storage.
import { persistentAtom } from '@nanostores/persistent'
export const $locale = persistentAtom('locale', 'en')
Made at Evil Martians, product consulting for developer tools.
Related Packages
@nirtamir2/nanostores-persistent-session-storage
A store for Nano Stores state manager to keep data in sessionStorage
2,744
383
@nanostores/media-query
A smart store for Nano Stores state manager to sync with some media query
164,218
22
@logux/state
A tiny (152 bytes) state manager for React/Preact/Vue/Svelte with many atomic tr...
35,227
7,630
Version History
| Version | Released | License |
|---|---|---|
| 1.3.5 | MIT | |
| 1.3.4 | MIT | |
| 1.3.3 | MIT | |
| 1.3.2 | MIT | |
| 1.3.1 | MIT | |
| 1.3.0 | MIT | |
| 1.2.1 | MIT | |
| 1.2.0 | MIT | |
| 1.1.0 | MIT | |
| 1.0.0 | MIT | |
| 0.10.2 | MIT | |
| 0.10.1 | MIT | |
| 0.10.0 | MIT | |
| 0.9.1 | MIT | |
| 0.9.0 | MIT | |
| 0.8.0 | MIT | |
| 0.7.0 | MIT | |
| 0.6.2 | MIT | |
| 0.6.1 | MIT | |
| 0.6.0 | MIT | |
| 0.5.3 | MIT | |
| 0.5.2 | MIT | |
| 0.5.1 | MIT | |
| 0.5.0 | MIT | |
| 0.4.1 | MIT | |
| 0.4.0 | MIT | |
| 0.3.3 | MIT | |
| 0.3.2 | MIT | |
| 0.3.1 | MIT | |
| 0.3.0 | MIT |
Showing the latest 30 of 35. See every release on npm