redux-persist
storage for Node.js/Electron.
// [...]
import {resolve} from "path";
import NodeStorage from "redux-persist-storage-node";
// [...]
persistStore(store, {
keyPrefix: "",
storage: new NodeStorage(resolve("./store.json"))
});
Exports a default class.
- fileName: An absolute path to the file to write the storage to.