Skip to content

Instantly share code, notes, and snippets.

View machine.js
//https://xstate.js.org/viz/?gist=https://gist.github.com/monzie9000/8006ab6c5db67c596802c73a6ab2a3a5
//https://app.lucidchart.com/documents/edit/de713c94-5b57-4100-a486-2fbdef83f28d/HWEp-vi-RSFO?beaconFlowId=DB76397B0359590F
"use strict";
const debug = false;
var pointer_upulse; //pointer that is used to update upulse
if (visualizing())
debugLog("VIZ", debug);
else
debugLog("LOCAL", debug);
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions