-
Notifications
You must be signed in to change notification settings - Fork 46
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
Nested State does not update the UI #81
Comments
Sorry for the late response, I'm sure you've given up or fixed it by now :P
Seeing as you said updates from app trigger ui updates, i doubt 2 is true. |
I encountered a similar problem: As my app grew more complex at some point reducer calls stopped updating the app state (I added a listener to store changes to see this). I investigated further and figured out that everything works as expected when I dispatch a simple action with no reducer or middleware attached to it during start up; yet this can't be the final solution, so I tried to rebuild the app architecture in a simple prototype and added more tests. Currently all my tests are passing and the simplified prototype works as well, so I'm not able to reproduce the problem. In the meantime, I'm encountering the issue despite my small workaround in my prod code again. Can you please tell me under which circumstances it might happen that store updates by a reducer are not reflected into the app state? I guess I'm using the api wrong somewhere in my code and this information would be helpful to find the right spot :) A bit context information: I'm using async middlewares and epics in a flutter app along with built_redux. |
Hi
I have an AppState and a nested MenuState.
Actions on the AppState trigger the reducer and that then triggers the UI to update.
Actions on the nested MenuState trigger the nested reducer BUT do not trigger the UI to update.
Is this a bug or am I doing something wrong?
If there is nothing obvious in my following code, would you be so kind and provide an example with a nested action and reducer that actually triggers an update using the
flutter_built_redux
StoreConnection
?store
middleware
app_state
menu_state
menu_item
app_actions
menu_actions
app_reducer
menu_reducer
menu_widget
The text was updated successfully, but these errors were encountered: