Skip to content

Instantly share code, notes, and snippets.

@deniaz
Created August 19, 2021 15:49
Show Gist options
  • Save deniaz/b0f42576e28ffefa0830780ea1dae986 to your computer and use it in GitHub Desktop.
Save deniaz/b0f42576e28ffefa0830780ea1dae986 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 faceTime = Machine({
id: "facetime",
initial: "idle",
states: {
idle: {
on: {
CALL: "calling",
},
},
calling: {
on: {
ACCEPT: "active",
REJECT: "idle",
},
},
active: {
on: {
END: "idle",
ADD_PERSON: "active",
},
type: "final",
},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment