Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've seen XState more and more, recently, what are the pros and cons versus other state management solutions? Anything that XState fails at particularly that potential users should be aware of?


Verbosity, complexity. It's probably overkill for 99.9% of the things you imagine.

Learning curve is more similar to rx-js or fp-ts than a state manager.


when you do get over the learning curve it's really excellent though.


The story for composition and reusability of multiple state machines is not good and it's not compatible with existing solutions for certain things (react query for example.) Supposedly this will all be fixed to some extent in v5 but that hasn't launched yet.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: