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
nullnow reportsnullas its output instead ofundefined. Rejecting withnulllikewise reportsnullas the error.const logic = createAsyncLogic({ run: async () => null }); // snapshot.output === null // parent receives { type: 'xstate.done.actor', output: null, ... }