foca-taro-storage
v1.0.4
Published
Foca持久化taro引擎
Downloads
33
Maintainers
Readme
foca-taro-storage
taro 端的持久化引擎。彻底解决经典的 没有找到页面实例
问题 https://github.com/NervJS/taro/issues/6548
安装
# npm
npm install foca-taro-storage
# yarn
yarn add foca-taro-storage
# pnpm
pnpm add foca-taro-storage
使用
import { store } from 'foca';
import { taroStorage } from 'foca-taro-storage';
store.init({
persist: [
{
key: 'my-project',
version: '1',
engine: taroStorage,
models: [],
},
],
});