1.0.8 • Published 4 years ago

redux-persist-capacitor-storage v1.0.8

Weekly downloads
20
License
MIT
Repository
github
Last release
4 years ago

Redux Persist Capacitor Filesystem Storage

Redux Persist storage engine working as an adapter to Capacitor's Filesystem API

Install

yarn add @capacitor/core redux-persist-capacitor-storage

Simple use-case with auth state

import CapacitorStore from "redux-persist-capacitor-storage";
import { persistReducer } from "redux-persist";
import { auth } from "./auth";

const authPersistConfig = {
  key: "auth",
  storage: CapacitorStore
};

const appReducer = combineReducers({
  auth: persistReducer(authPersistConfig, auth)
});
1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago