Skip to content

Instantly share code, notes, and snippets.

const appMachine = Machine(
{
id: 'appOutlook',
context: {
office: null,
startupPromise: null,
delegateData: null,
reservation: null,
request: null,
item: null,
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@LevelbossMike
LevelbossMike / machine.js
Created February 16, 2021 09:23
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@LevelbossMike
LevelbossMike / machine.js
Last active December 14, 2020 08:56
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@LevelbossMike
LevelbossMike / machine.js
Last active November 23, 2020 10:31
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@LevelbossMike
LevelbossMike / machine.js
Created November 16, 2020 13:09
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@LevelbossMike
LevelbossMike / machine.js
Created November 16, 2020 12:27
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@LevelbossMike
LevelbossMike / machine.js
Last active October 21, 2020 14:42
Generated by XState Viz: https://xstate.js.org/viz
function noop() {}
const async = Machine(
{
id: 'async',
initial: "idle",
context: {
trigger: noop,
onSuccess: noop,
onError: noop
@LevelbossMike
LevelbossMike / machine.js
Created September 17, 2020 08:00
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions