FSM

What

Not Flying Spaghetti Monster

Wiki Finite State Machine

Why

Ui State -> Booleans are Anti-pattern

Examples

 

Loading List

isLoading

More Complexity

 

All Hail The Spaghetti

Redux

Typescript Disjoint Unions

Impossible State Impossible/ No Booleans

Panel State Machine

Recap

Made with Slides.com