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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redux don't update component in dev env #3859
Comments
Hey @Borrelli, Before we investigate this, as I suspect it may not be Expo-related, can you try reproducing this issue in a vanilla React Native project and seeing if it still persists? If it works properly then please create a Snack with just the minimal code and dependencies required to reproduce the issue so we can debug on our end. Cheers, |
Please, can you explain me what you mean by "reproducing this issue in a vanilla React Native project". |
Yes, sorry for the confusion. The phrase vanilla react native most often means a plain react-native project. You'll want to follow the |
I put the projet on snack and there is it: You can check bug on clicking an item, and click on "AJOUTER AU PANIER", the store work, you can see a text add and delete. But if i run it on android emulator or expo cli with device on developpement mode. This shield don't add and delete. The store don't update the component... |
I solved the problem by completely reinstalling the application. Probably a problem of incompatibility... |
I have this issue accross all 3 computers that run my app. I have tried uninstalling and reinstalling |
Me too, still stuck with component which is not rendered in development environment, but it works in production mode of Expo |
great spot, ive been stuck on this for 4 hours. please fix |
Do you try a clean reinstallation? |
I have this problem with all 3 computers i use for development, each one when i started development i installed expo and pulled the project from scratch |
Do you have some special code initialization that is only happening when DEV is true or something like this? This could explain why your code only works in production |
Not as far as I can tell |
@msevestre @adamsythe the DEV env is handling by expo. It should be write on the official doc ... |
@Borrelli @adamsythe The bug description strongly suggests that something is happening to the redux middleware in dev mode that is breaking redux. This actually has nothing to do with |
here are my dev dependencies |
I think I'm suffering from this issue in SDK 33 but the other way around. Upgrading to react-redux 7 was not possible since it broke a few things. Keeping react-redux 6 (the same that I was using in SDK 32) is working, but redux only updates my components in development mode. In production mode it will not update. |
馃悰 Bug Report
Environment
Expo CLI 2.13.0 environment info:
System:
OS: Windows 10
Binaries:
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
Steps to Reproduce
Doing a mapStateToProps with a console.log for checking if component is updating with new props when dispatch.
You can see this issue for more information and reproducing
https://stackoverflow.com/questions/55315191/connect-doesnt-refresh-when-state-change-on-react-native-with-redux/
Expected Behavior
Component with connect() should reload on store modification
Actual Behavior
Nothing happened on developpement mode, but if env is production, redux working and component update.
The text was updated successfully, but these errors were encountered: