Created
November 18, 2021 13:29
-
-
Save 3gwebtrain/5155dd42d698780621605921f8d02eb7 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Machine({ | |
initial:'inactive', | |
states:{ | |
inactive:{ | |
on:{ | |
TOGGLE:'pending' | |
} | |
}, | |
pending:{ | |
on:{ | |
SUCCESS:'active', | |
TOGGLE:'inactive' | |
} | |
}, | |
active:{ | |
on:{ | |
TOGGLE:'inactive' | |
} | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment