6 ms·
I haven't tried this one, but for what it's worth, if you're looking for a simple state manager, I LOOOOOOOOOVE Pullstate.js. I've been using it for a reasonabl
by aerovistae 6y ago
I haven't tried this one, but for what it's worth, if you're looking for a simple state manager, I LOOOOOOOOOVE Pullstate.js. I've been using it for a reasonably complex frontend and it's just excellent, an absolute breeze to work with. For reference, I'm the type of person who appreciates the power of redux but views it as conceptually overcomplicated to the detriment of the developer experience-- I felt it was overhyped and added limited value relative to the cost of its complexity. (Not that it's that complex, but more than a state manager needs to be.)
Pullstate is extremely simple but just works perfectly.
- richeyryan 6y agoThat looks really good. I like how the hook is built into the store API. My problem with a lot of these simple state managers is they often just stop short of handling asynchronous state. I think it should pretty much be mandatory to handle pending and error states on promises for state manager nowadays. Pullstate's Async Actions look pretty good for that. I've been using Effector a lot recently because it has just a bit more power in managing the interactions between stores and events but if I needed something more straightforward Pullstate would be good. Thanks for the tip!