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
-
lotd7922296dMeh, 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. -
TeachMeCode5174296d@devRancid dispatch is bad concerns separation anyway. Zustand is a tiny fraction of redux and damn easy to use plus it has intuitive selectors.
-
lotd7922296d@Slow-Yep haven’t used. I like they’re demonstrating generator functions, it’s an underused 💎😁
-
TeachMeCode5174296d@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 -
lotd7922295d@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