-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redux persist not working with RN 0.73 #1462
Comments
Anyone else seeing this with RN 0.73? We are due to upgrade soon so want to know if this is a showstopper. Any news on your side @OmarBasem ? Edit: And @OmarBasem, did you debug exactly what happens in the handlePersistorState function causing bootstrapped state not being set to true? redux-persist/src/integration/react.ts Line 34 in d8b01a0
|
@eithe No news from my side.
Nope, I did not debug exactly what happens. I wasn't in urgent need of 0.73 so I rolled back to 0.72. If you find anything let me know please. |
I'm trying to use redux-react in my React native application version 0.72.8. When I try to import
I checked the node_modules and found out the |
I copied/pasted my redux implementation from a RN 0.72 project to a new RN 0.73 project and it's not working for me neither although it's working correctly on my RN 0.72 project. |
Same problem here on Expo 50 / React Native 0.73. |
Does anyone know if this has a chance to be fixed anytime soon? |
I've got a solution that's working for me, which you can install with `npm install @johnhamlin/redux-persist.' (You'll have to update all of your import statements too.) Long story short(er), the code in this repo was updated to version 6.1 three years ago, but that was never published for whatever reason. The latest on npm is 6.0. The only change I made was to update I've tested my version on Expo SDK 50 / React Native 0.73. It works in development and production builds on my iPhone and in simulators. Hope this helps others! |
Hi John. By trying your package, I found why my redux-persist wasn't working. It was because I didn't add the right value in the whitelist (lol). After the fix I did, I deleted node modules folder and
Which means redux-persist is apparently working in my project with those versions:
Here is my implementation in case it could help someone else: store.js
slice.js
|
Glad you got it working! I was trying to set this up in a new project, so it wasn't totally clear why it started working when it did 😅 |
So to conclude you are also seeing that it's working with RN 0.73 and React 18.x without your 6.1 package @johnhamlin ? |
@eithe Yes its working with @react-native-async-storage/async-storage. Just , put the right name on whitelist! |
Hey, guys I am facing my error after I upgrade my react native to latest from 0.64 and react to 18x and all those redux packages
getSortedMiniAppsScreens - action dispatched these functions were usually working normally earlier , now certain functions were undefined Note: I am using a monorepo Looking forward for reply... |
I am not sure about your specific issue ( |
Similar issue. Got stuck debugging an issue on Android production build on React native 0.74. Things were working on local, but got stuck with an empty screen on production build. Turns out that Redux perssist does not work on the first launch, never clearing up the Perssist Gate, and without throwing any error. However, on subsequent launches of the app (eg react native reload and expo reload) the gate seemed to be cleared (and I think the store was rehydrated) It looks like the library is now abandoned, without any updates in 3 years. There are multiple reports of issues with React native without them being addressed :( |
After upgrading to RN 0.73.1, my app gets stuck on a blank loading screen (PesistGate loading).
Removing
PersistGate
from the App tree makes it work.I tried debugging the problem, in the file
lib/integration/react.js
,this.state.bootstrapped
returns false, therefore returns loading.The text was updated successfully, but these errors were encountered: