zustand-persist:持久和补水状态

时间:2021-05-05 07:17:07
【文件属性】:
文件名称:zustand-persist:持久和补水状态
文件大小:284KB
文件格式:ZIP
更新时间:2021-05-05 07:17:07
react react-native zustand JavaScript Zustand坚持 持久和补水状态对天然物质起React和React作用。 是一个小型,快速且可扩展的状态管理解决方案。 该库受启发。 欢迎捐款 $ npm install zustand-persist $ yarn add zustand-persist 在这里尝试 中间件 // if in react native // import AsyncStorage from '@react-native-community/async-storage' const { persist , purge } = configurePersist ( { storage : localStorage , // use `AsyncStorage` in react native rootKey : 'root' , // optional, default value is `
【文件预览】:
zustand-persist-master
----.prettierignore(3B)
----.gitignore(327B)
----tsconfig.json(550B)
----README.md(3KB)
----.github()
--------workflows()
----rollup.config.js(209B)
----tests()
--------LoadManager.spec.ts(1KB)
--------PersistGate.spec.tsx(3KB)
--------keeper.spec.ts(2KB)
--------parseJson.spec.ts(342B)
--------reconcile.spec.ts(644B)
----LICENSE(1KB)
----package.json(3KB)
----src()
--------configurePersist.ts(2KB)
--------keeper.ts(1KB)
--------parseJson.ts(140B)
--------reconcile.ts(871B)
--------index.ts(153B)
--------LoadManager.ts(798B)
--------PersistGate.tsx(566B)
----cspell.json(175B)
----example()
--------tsconfig.json(491B)
--------README.md(146B)
--------public()
--------package.json(4KB)
--------src()
--------scripts()
--------config()
----.travis.yml(75B)
----babel.config.js(159B)
----yarn.lock(594KB)

网友评论