Skip to content

Instantly share code, notes, and snippets.

@bierlingm
Created May 7, 2020 15:16
Show Gist options
  • Save bierlingm/263e70598d8add695fcbca9a9671270e to your computer and use it in GitHub Desktop.
Save bierlingm/263e70598d8add695fcbca9a9671270e 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 writingSessionMachine = Machine(
{
id: 'canvasTimer',
initial: 'ready',
states: {
ready: {
on: {
START: 'running',
},
},
running: {
entry: ['runTimer'],
on: {
STOP: 'complete',
},
after: {
9000: 'complete'
}
},
complete: {
type: 'final',
},
},
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment