1.0.8 • Published 6 years ago

redux-persist-capacitor-storage v1.0.8

Weekly downloads
20
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago