-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Warning - Redux and RNRF - Cannot update during an existing state transition #2253
Comments
Duplicate of #2063 ? |
Also https://github.com/mobxjs/mobx-react/blob/master/README.md#faq could be helpful. I will wait for Example. |
Thanks for your quick reply. It might be indeed a duplicate from #2063.
How would you solve this ? By adding a new scene checking which view to be displayed ? |
I need to see code. Please fork & modify Example to reproduce the issue. |
Ok, I did it differently. Works fine for me. |
Maybe you can post solution here, it could be useful for others... |
Well, I do not think it is the best answer but what I did to resolve my but:
|
This may be helpful for others or not. I didn't have this problem until I started tracking state changes in redux myself. These values are fed into the pages as props. When the props are changing at the same time as the component is changing, react interprets this as an error (warning actually). This is unavoidable in my situation without a significant rewrite so I chose to suppress this specific warning with a line like this:
By suppressing only this warning I will still receive others. |
Version
Tell us which versions you are using:
Actual behaviour
I have the following warning:
According to the logs, it seems there is problem to do the setup between RNRF, RN and Redux.
I do the setup like this :
And in my Router component, it is here I have all my routes.
I have 2 questions:
What do you think ?
Steps to reproduce
I'll try to make an example.
The text was updated successfully, but these errors were encountered: