4 ms·
One of the problems I noticed with Redux is that you need to clean your state. This is one of the reasons why global variables are a problem. If you keep your
by tomca32 8y ago
One of the problems I noticed with Redux is that you need to clean your state. This is one of the reasons why global variables are a problem.
If you keep your state in a component, you don't need any housekeeping, once the component is gone, the state is gone.
This is not true with Redux. You have to keep remembering to clean the state after you're done with something or you're going to introduce a bunch of bugs.