[–] designed 4y ago ↗ I would use a state machine in this case. The best tool for doing this in JavaScript/TypeScript is XState. Highly recommend.
2 comments
[ 3.8 ms ] story [ 35.9 ms ] thread