You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 page Trucks where reducers added dynamically, then to the state add that expired notification from Cars page.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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