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
There are no binary states
Use FSM to use previous research
Use FSM to diagram complications, to comprehend
Use FSM to make impossible states impossible
https://www.youtube.com/watch?v=IcgmSRJHu_8
Use FSM to test
Made with Slides.com