Skip to content

Instantly share code, notes, and snippets.

@abhayarawal
Last active August 18, 2021 08:31
Show Gist options
  • Save abhayarawal/ce533b933b0b9b949b80c22441a0a26a to your computer and use it in GitHub Desktop.
Save abhayarawal/ce533b933b0b9b949b80c22441a0a26a 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: 'idle',
context: {
},
states: {
idle: {
on: {
UPDATE_BASIC_DETAILS: 'update_basic_details',
UPDATE_BASIC_INFO: 'update_basic_info',
UPDATE_HEALTH_DETAILS: 'update_health_details',
CONTACT_CUSTOMER_LOVE: 'contact_customer',
UPDATE_EATING_HABITS: 'update_eating_habits'
}
},
update_basic_details: {
},
update_basic_info: {
},
update_health_details: {
},
contact_customer: {
},
update_eating_habits: {
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment