Skip to content

Instantly share code, notes, and snippets.

@24601
Last active July 8, 2020 21:25
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 24601/ad2dc17d4e29c644ae764956d1a4f9bb to your computer and use it in GitHub Desktop.
Save 24601/ad2dc17d4e29c644ae764956d1a4f9bb 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 captureNoteMachine = Machine({
id: 'captureNote',
initial: 'empty',
context: {
retries: 0
},
states: {
empty: {
on: {
EDIT: 'processingTags'
}
},
processingTags: {
on: {
RESOLVED: 'resolved',
UNRESOLVED: 'unresolved'
}
},
resolved: {
on: {EDIT:'processingTags'}
},
unresolved: {
on: {
RESOLVED: 'resolved',
EDIT:'processingTags'
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment