Repository navigation
xstate@6.0.0-beta.7
Pre-releasePatch Changes
-
733da5d: Run callback cleanup before starting its replacement when a
sendBackevent makes the parent reenter the invoking state. Preserve the order of outgoing events and completion notifications. -
bdd5b7c: Preserve a restored durable timer's absolute deadline when the host clock is behind the recorded scheduling time.
-
5adbadf: Fix
machineFromJSONtransitions using@xstate.assignso they preserve context updates from exit actions and other parallel regions. -
36ae907: Partial wildcard descriptors now include the bare prefix event in their types, matching runtime behavior.
'feedback.*'matchesfeedbackas well asfeedback.good, soon: { 'feedback.*': ... }handlers,assertEvent(event, 'feedback.*')andExtractEvent<TEvent, 'feedback.*'>keep thefeedbackevent.Accessing a payload that only
feedback.goodcarries now requires narrowingevent.typefirst. -
022cf02: Targeting the machine root from a descendant resets its children and keeps the root active. The root's initial transition still supplies input to its children. Set
reenter: trueto exit and reenter the root explicitly. Targeting a history state uses its selected default without rerunning its parent's initial transition.