replaceReducer sets old state #4618
Unanswered
khidirbekov
asked this question in
Help
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I try to do code splitting with ReducerManager
Everything working perfect, reducers adding dynamically but I have one issue
I have notifications feature: when I do some action then call dispatch of adding notificaiton, after timeout (4sec) calls remove notification action.
And for example if I go to the page
Cars
and do some action that calls notification, and after timeout of notification I go to the pageTrucks
where reducers added dynamically, then to the state add that expired notification fromCars
page.I don't have any idea why its happen
The way how I add reducers
I have tried to call this hook body not in the render block but in useEffect - same behaviour
Beta Was this translation helpful? Give feedback.
All reactions