You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an interpreted machine reaches a final state, services invoked at the root level are no longer stopped.
#3126 changed the way the interpreter is stopped when this.state.done, calling the new _stop method where previously stop was called. stop handles stopping all children:
Description
When an interpreted machine reaches a
final
state, services invoked at the root level are no longer stopped.#3126 changed the way the interpreter is stopped when
this.state.done
, calling the new_stop
method where previouslystop
was called.stop
handles stopping allchildren
:xstate/packages/core/src/interpreter.ts
Lines 664 to 668 in f2bf492
Expected result
When a service reaches a
final
state, all invoked services are stopped.Actual result
When a service reaches a
final
state, services invoked at the root are not stopped.Reproduction
https://codesandbox.io/s/kind-diffie-ewx8qk?file=/src/index.ts
Additional context
Reproduction of previous behavior (
xstate@4.32.1
): https://codesandbox.io/s/modern-rain-4serhmThe text was updated successfully, but these errors were encountered: