Created
December 4, 2019 20:50
-
-
Save martypenner/4e3d1ed3c4df416c146ebd6175070bb1 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
const machine = Machine({ | |
id: 'switcherList', | |
initial: 'offscreen', | |
states: { | |
offscreen: { | |
on: { | |
OPENED: 'opening' | |
} | |
}, | |
onscreen: { | |
on: { | |
CLOSED: 'closing' | |
} | |
}, | |
opening: { | |
on: { | |
FINISHED_OPENING: 'onscreen', | |
CLOSED: 'closing' | |
} | |
}, | |
closing: { | |
on: { | |
FINISHED_CLOSING: 'offscreen', | |
OPENED: 'opening' | |
} | |
} | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment