Skip to content

Instantly share code, notes, and snippets.

@ecordell
Created April 1, 2021 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ecordell/2ba2a17bce9c63b0cc0cc33fcf253a98 to your computer and use it in GitHub Desktop.
Save ecordell/2ba2a17bce9c63b0cc0cc33fcf253a98 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)
let obj = JSON.parse('{"id":".BundleMachine","initial":"NoBundlesToSync","states":{"BundleRequiresCleanup":{"id":".BundleRequiresCleanup"},"BundlesPresent":{"id":".BundlesPresent","states":{"BundleGenerationMatches":{"id":".BundleGenerationMatches","states":{"ContentNotSynced":{"id":".ContentNotSynced"},"ContentSynced":{"id":".ContentSynced"}},"on":{"BundleSync":[{"target":".ContentSynced"},{"target":".ContentNotSynced"}]}},"BundleNewGeneration":{"id":".BundleNewGeneration"}},"on":{"BundleSync":[{"target":".BundleGenerationMatches"},{"target":".BundleNewGeneration"}]}},"NoBundlesToSync":{"id":".NoBundlesToSync"}},"on":{"BundleSync":[{"target":".BundlesPresent"},{"target":".BundleRequiresCleanup"}],"ConfigMapSync":[]}}');
const fetchMachine = Machine(obj);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment