Repository navigation
Minor Changes
-
6b7bc17: Reducers and actions can now be passed to
state(), and run whenever the machine enters that state.const machine = createMachine({ loading: state( reduce((ctx) => ({ ...ctx, error: null })), action(showSpinner), transition("done", "loaded") ), loaded: state(), });
Entry reducers and actions run after the reducers of the transition that led into the state, before the state's immediates are checked, and not on a transition from a state to itself.
Patch Changes
- 17b2ab2: Fix
immediate()widening a machine'ssend()event type tostring