4 ms·
That 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
by richeyryan 5y ago
That 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!