Skip to content

Instantly share code, notes, and snippets.

@korshunad
korshunad / machine.js
Last active April 1, 2022 23:52
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@korshunad
korshunad / machine.js
Created July 13, 2021 01:01
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@korshunad
korshunad / machine.js
Created June 30, 2021 22:02
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@korshunad
korshunad / machine.js
Last active June 29, 2021 23:18
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@korshunad
korshunad / machine.js
Last active June 24, 2021 18:29
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@korshunad
korshunad / machine.js
Last active April 22, 2021 00:47
Generated by XState Viz: https://xstate.js.org/viz
TRANSFER_STATES = {
START: 'start',
INITIAL: 'initial',
ELIGIBLE_TO_TRANSFER: 'eligible_to_transfer',
NOT_ELIGIBLE_TO_TRANSFER: 'not_eligible_to_transfer',
REQUIREMENTS: 'requirements',
SHOW_REQUIREMENTS: 'show_requirements',
FETCH_REQUIREMENTS: 'fetch_requirements',
FORM: 'form',
IDLE: 'idle',
@korshunad
korshunad / machine.js
Created April 10, 2021 03:06
Generated by XState Viz: https://xstate.js.org/viz
const IGNORE_ERRORS_DURATION = 3000;
const FS = {
IDLE: 'idle',
UNSEALED_RESET: 'unsealed_reset',
UNSEALED_ERROR: 'unsealed_error',
OPENING: 'opening',
GETTING_MOMENTS: 'getting_moments',
}
@korshunad
korshunad / machine.js
Last active April 30, 2021 00:40
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions