Hacker News new | ask | show | jobs
by nicoburns 1914 days ago
Not sure that this has it quite right, but something along these lines (redux-like, but integrated with immer seems like a good idea). Perhaps it could also could also use TypeScript to cut down on "action creator" boilerplate?
3 comments

Redux Toolkit is the suggested way to use redux these days and has immer built-in.
Redux Toolkit is the official Redux solution now and is what you're looking for.
I've been using pullstate as a Redux alternative, found it to be way more ergonomic. Uses immer for updates, and the move away from action-creators, actions, reducers, etc. cuts down on a huge amount of boilerplate, as well as making it more type-safe when using Typescript.