CLI
GitHub Desktop
the State Machine hook
Yummm
TypeScript
useEffect
No matching tags
JavaScript
No matching tags
React).The
No matching tags
Guard run before actually running the transition: If the guard returns false the transition will be denied.Besides the finite number of states, the state machine can have extended state (known as context).You can provide the initial context value as the first argument to the State Machine hook, and use the update function within your effects to change the context:The context types are inferred automatically in TypeScript, but you can provide you own typing if you want to be more specific:Thanks goes to these wonderful people (emoji key):This project follows the all-contributors specification.
As said here by cassiozen