DEV Community

Discussion on: Why I Stopped Using Redux

Collapse
 
g_abud profile image
Gabriel Abud • Edited

Yeah my point is not that Redux is bad per se, more that the way we generally use it and other state management libraries is bad. If you have a lot of global state to manage that is truly frontend state, then it may be worth it to use Redux.

What I meant is that we're generally not using it correctly and it often leads to bad patterns where we end up shoving everything in a global store and recreating a cache from scratch.

Collapse
 
rad_val_ profile image
Valentin Radu

Got it and I agree: it's not generally bad. It's not good either tho 😅 And has never been, regardless of project size.

we end up shoving everything in a global store and recreating a cache from scratch

👍🏽 I guess, independently of whether we use Redux or not, we'll end up creating some sort of cache-like system, because in the end, that's what out client side state is in a way: a cache for the backend state. So yeah, better if we don't start from scratch every time.