XState 6.0.0-alpha.73

6.0.0-alpha.73Pre-release
Fixed 2
  • Async logic that resolves null now reports null as its output instead of undefined.
  • Async logic that rejects with null now reports null as the error.

From XState

Patch Changes
  • 6ef5f1f: Async logic that resolves null now reports null as its output instead of undefined. Rejecting with null likewise reports null as the error.

    const logic = createAsyncLogic({ run: async () => null });
    // snapshot.output === null
    // parent receives { type: 'xstate.done.actor', output: null, ... }
    
View original

Upgraded? How did it go?

Discussion