redux-persist
redux-persist copied to clipboard
persist and rehydrate a redux store
```typescript //node_modules/redux-persist/types/integration/react.d.ts declare module "redux-persist/integration/react" { import { ReactNode, PureComponent } from "react"; import { Persistor } from "redux-persist/es/types"; /** @see PersistGate */ ```
Hey folks, The following issue occurs on android only: I have a listener for appstate changes. When the apps goes into background, an action is dispatched. I then close the...
Hi, Here is my context : - "redux-persist": "^5.10.0" - App.js : Provider store={Store} PersistGate persistor={persistor} ... /PersistGate /Provider - At startup, I come from a state where there is...
Hello, I have a problem that I cannot solve. I have 2 reducers: "products" and "filters". What I want to do is have the "filters" reducer show up in localstorage...
https://github.com/rt2zz/redux-persist/issues/1140 `redux` compatible with `persistStore`. ```ts // persistStore.d.ts declare module 'redux-persist/es/persistStore' { import { Store, Action, AnyAction } from 'redux'; import { PersistorOptions, Persistor } from 'redux-persist/es/types'; /** * @desc...
Hi Guys, why when I add a new property on my Redux INITIAL_STATE, this new property is just droped on REHYDRATE step of Redux Persist instead of being merged with...
I am using localforage with IndexedDB and this works out of the box: ``` localforage.config({ driver: [localforage.INDEXEDDB, localforage.LOCALSTORAGE], name: 'database' }); ``` however, my state will hold a lot of...
Hi guys, I have a problem with redux-persist. This is my authentication slice: ``` const initialState: AuthState = { isLoading: false, isLoggedIn: false, username: '', token: '', role: '', authenticationError:...
The package works perfectly fine in a **non-testing env**. However, in a **testing environment**, I am getting this error: ``` TypeError: Cannot read property 'catch' of undefined at writeStagedState (/Users/kasra/Documents/app/node_modules/redux-persist/lib/createPersistoid.js:98:71)...
Hi, using react-native-persist 5.10.0 and react-native 0.59.9, I am seeing several crashes lately in our production app like: ``` Error · Out of memory [native code]stringify node_modules/redux-persist/lib/createPersistoid.js:90:57writeStagedState node_modules/redux-persist/lib/createPersistoid.js:78:6processNextKey node_modules/react-native/Libraries/Core/Timers/JSTimers.js:152:6_callTimer node_modules/react-native/Libraries/Core/Timers/JSTimers.js:414:17callTimers...