When I call an action, first time data is loaded perfectly fine. Component re-renders again and messes up the state. Default State Working State After unexpected render My Code Answer I Updated React.useEffect() to : Now it works.
Tag: easy-peasy
Does redux evaluate all listeners to the store on any update to the store?
From what I can tell, redux will notify all subscribers to the store when anything in the store changes no matter if it’s a subscription to a deeply nested leaf or a subscription to the top level of the state. In an application where you follow the guiding principle: many individual components should be connected to the store instead of