redux-persist-webextension-storage
A WebExtension Storage storage engine for redux-persist.
Installation
Add the redux-persist-webextension-storage NPM package via NPM or Yarn:
$ yarn add redux-persist-webextension-storage
Usage
There are separate storage engines for local storage and sync storage. Import the one you need, or both, and pass them as storage engines when configuring your store.
// configureStore.js ;; const localStorageConfig = key: 'localStorage' storage: syncStorage const syncStorageConfig = key: 'syncStorage' storage: syncStorage // Persist each of the storage areas under different keys and with different storage engines.const rootReducer = { const store = const persistor = return store persistor }