DEV Community

Darren
Darren

Posted on

Redux and duplicate actions

Hi all,

A scenario I've found myself come across during scaling of React apps using Redux is scenarios where common actions within the app can end up firing multiple times.

For example page load actions firing multiple times or a chain of actions that might fire in a kind of A => B => C => A pattern causing A to be duplicated when it potentially doesn't need to.

Such instances generally tend to have no functional impact on the app in question, but I'm curious to know if this is something other developers haver come across and consequently refactored out of the apps they work on, if so, how so?

Oldest comments (0)