Skip to content

Instantly share code, notes, and snippets.

@stonexer
Created June 23, 2020 05:30
Show Gist options
  • Save stonexer/aab8a87ad264f2a25412e87c2ebd263c to your computer and use it in GitHub Desktop.
Save stonexer/aab8a87ad264f2a25412e87c2ebd263c 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: 'fetch',
initial: '初始化(登录)',
context: {
retries: 0
},
states: {
'初始化(登录)': {
on: {
'授权': '已完成协议授权'
}
},
'已完成协议授权': {
on: {
'报名1': '未实名',
'报名2': '预审通过 待报名'
}
},
'未实名':{},
'预审通过 待报名': {},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment