@nanostores/persistent
v1.2.0
Published
A store for Nano Stores state manager to keep data in localStorage
Readme
Nano Stores Persistent
A smart store for Nano Stores state manager to keep data in localStorage
and synchronize changes between browser tabs.
- Small. from 280 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.
Docs
Read full docs here.
