valtio-partial-persist
v0.1.1
Published
A lightweight utility for selectively persisting parts of a Valtio store to storage.
Readme
Valtio-partial-persist
A lightweight utility for selectively persisting parts of a Valtio store to storage.
Usage
Install:
npm i valtio-partial-persistExample
import { persist } from 'valtio-partial'
interface Store {
a: number
b: number
}
const store = proxy<Store>({ a: 1, b: 2 })
persist<Store>(store, 'my-app', ['b'])License
This library is licensed under the MIT License.
See the LICENSE file for details.
