SS screenshots
Paste machine file
import { createMachine } from 'xstate'; export const machine = createMachine({ id: 'machine', initial: 'idle', states: { idle: { on: { FETCH: 'loading', }, }, loading: { on: { RESOLVE: 'success', REJECT: 'failure', }, }, success: { type: 'final', }, failure: { type: 'final', }, }, });
Screenshot url
Machine URL (preview)