Created
September 30, 2020 10:54
-
-
Save tklepzig/3be59851512f44a340a4cd493a544308 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const alivePing = Machine({ | |
id: "alivePing", | |
initial: "enabled", | |
states: { | |
enabled: { | |
on: { | |
DISABLE: "disabled", | |
ALIVE_PING: { | |
target: "enabled", | |
actions: actions.cancel("delay") | |
} | |
}, | |
after: { | |
5000: {target: "disabled", id: "delay"} | |
} | |
}, | |
disabled: {} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment