Skip to content

Instantly share code, notes, and snippets.

@tivac
Created October 7, 2020 21:11
Show Gist options
  • Save tivac/ef8e72977e0938d0eac043216445ca25 to your computer and use it in GitHub Desktop.
Save tivac/ef8e72977e0938d0eac043216445ca25 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 fetchMachine = Machine({
id: 'conditional-always',
initial: 'foo',
states: {
foo: {
initial : "no",
always : [
{
cond : () => true,
target : ".yes",
},
],
states : {
yes : {},
no : {},
}
},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment