Skip to content

Instantly share code, notes, and snippets.

@joelhooks
Last active April 22, 2020 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelhooks/084564cf3016b03d924279e749123d4b to your computer and use it in GitHub Desktop.
Save joelhooks/084564cf3016b03d924279e749123d4b to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
const feedbackMachine = Machine({
id: "feedback",
initial: "closed",
states: {
opened: {
onEntry: "focusTitle",
on: {
CLOSE: "closed",
},
},
closed: {
on: {
OPEN: "opened",
},
},
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment