Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
lotd7775335dMeh, I’ve seen way, way worse than what redux leads to.
It’s not pretty, but at least it’s usually consistent.
Whatever you do, just don’t start fucking around with queueMicrotask or promises with async handler functions in your state switches.
State being returned then mutated is nightmare fuel. -
TeachMeCode5175335d@devRancid dispatch is bad concerns separation anyway. Zustand is a tiny fraction of redux and damn easy to use plus it has intuitive selectors.
-
lotd7775334d@Slow-Yep haven’t used. I like they’re demonstrating generator functions, it’s an underused 💎😁
-
TeachMeCode5175334d@Slow-Yep it exposes reliance on the reducer, though it can be wrapped in a function.
There are other state management tools you can use. I will admit redux has the best support -
lotd7775334d@fullstackcircus know what it is, haven’t digged since tech lead has already ruled it out as unnecessary, to minimize dependencies..
dispatch(utterDisgust())
joke/meme