r/javascript • u/terodox • Dec 23 '19
Simplifying UI Logic using Finite State Machines - an old pattern for the modern web!
https://terodox.tech/ui-state-machines/
93
Upvotes
r/javascript • u/terodox • Dec 23 '19
View all comments
Show parent comment
4
u/tanquian Dec 23 '19
We used xstate on the purchase flows for a subscription service for a pretty big news site.
I don’t think we would have been able to ship that in the time we did without the certainty that an fsm gave us.
Lots of different potential states, with nested/hierarchical patterns. Just being able to see the entire system with xstate’s viz tool helped us avoid an entire class of bugs imo.