Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 980 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 980 Bytes

foca-taro-storage

taro 端的持久化引擎。彻底解决经典的 没有找到页面实例 问题 NervJS/taro#6548

npm peer dependency version License npm

安装

# 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: [],
    },
  ],
});