mattpocock / xstate-catalogue

Professionally designed, interactive state machines
https://xstate-catalogue.com
MIT License
811 stars 62 forks source link

[Idea] Permutations of examples #48

Open ChrisShank opened 3 years ago

ChrisShank commented 3 years ago

Just throwing out an idea that it could be useful to see slight permutations of the same machine adding additional functionality. A simple example would be to permute the “ Simple Data Fetch” machine to use the AbortController to actual cancel the request.

This would allow use to start with trivial examples and build up more complex, intricate examples while allowing someone new to start from an easy to understand example.

I think there are some examples in the catalogue where we are implicitly doing this, but i suspect modifying the current design could help make it more explicit that a group of example build on each other.