XState 6.0.0-alpha.8

6.0.0-alpha.8Pre-release
Changed 1
  • Done transitions now receive `output` directly in callback arguments for XState done events
Patch Changes
  • 667d1c7: Done transitions now receive output directly in callback arguments.

    invoke: {
      src: fetchUser,
      onDone: ({ output }) => {
        output.name;
      }
    }
    

    The direct output value is only provided for XState done events, such as xstate.done.actor.* and xstate.done.state.*.

View original

Upgraded? How did it go?

Discussion