|
|
|
|
|
by doque
3268 days ago
|
|
It's one of the essentials principles of redux [1] that reducers must be pure functions without side effects. If you violate that principle, then yes, your assumptions break. That's why you should keep it in mind. You can't really blame the framework if you purposely go against its basic rules. [1] http://redux.js.org/docs/introduction/ThreePrinciples.html#c... |
|
I just wish they had a reasonable way to _enforce_ those rules (though I understand it's not really possible) – or at least make people really go out of their way to break convention.