8
cygnus
98d

dispatch(utterDisgust())

Comments
  • 0
    Zustand is the way to go
  • 2
    Meh, 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.
  • 1
    Afaik even the creator of redux advises ppl to use something else
  • 0
    @devRancid dispatch is bad concerns separation anyway. Zustand is a tiny fraction of redux and damn easy to use plus it has intuitive selectors.
  • 0
    @Slow-Yep haven’t used. I like they’re demonstrating generator functions, it’s an underused 💎😁
  • 0
    @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
  • 0
    wow, looks like everyone in here has no idea what redux toolkit is

    🤡
  • 0
    @fullstackcircus know what it is, haven’t digged since tech lead has already ruled it out as unnecessary, to minimize dependencies..
Add Comment