3 ms·
In a simple app, no. In a really big app with tons of interdependent, asynchronously loaded state? Have fun. Redux definitely has too much boilerplate, but it
by danenania 8y ago
In a simple app, no. In a really big app with tons of interdependent, asynchronously loaded state? Have fun.
Redux definitely has too much boilerplate, but it does an excellent job of keeping functionality decoupled, and on a big project this ends up being way more important. When you do it right, you rarely introduce regressions when working on new features, because almost everything you do is additive: you're adding new state, new actions, new selectors, new sagas, etc., without touching any pre-existing functionality or anything that pre-existing functionality depends on.
The alternative is playing an endless game of whack-a-mole as an app gets too large for anyone to keep track of what depends on what.
- molszanski 8y ago> The alternative is playing an endless game of whack-a-mole as an app gets too large An alternative is another state management library.
- danenania 8y agoYeah sorry, I didn't mean to imply that redux is the only option. I meant that whack-a-mole is the alternative to using some sort of robust state management approach.