Skip to content

Instantly share code, notes, and snippets.

@joshpitzalis
Last active August 13, 2020 19:03
Show Gist options
  • Save joshpitzalis/70940839866d33ba2af5437cdc4ed5b4 to your computer and use it in GitHub Desktop.
Save joshpitzalis/70940839866d33ba2af5437cdc4ed5b4 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const readingListMachine = Machine({
id: 'interview_Panel',
initial: 'interview',
type: 'parallel',
states: {
filterState: {
on: {
A_FILTER_DELETED: 'filterState',
}
},
idle:{
on:{
B_SELECTED: 'selected',
}},
selected:{
initial: 'active',
states:{
active: {
on:{
C_ALL_SELECTED: 'allSelected',
D_PRINTED_MULTIPLE:'loading',
}},
loading:{
on: {
E_COMPLETED:'active',
F_CANCELLED: 'active'
}
},
allSelected: {
on: {
G_UNSELECTED_ALL: 'active'
}}
}
}}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment