statelyai / xstate

Actor-based state management & orchestration for complex app logic.
https://stately.ai/docs
MIT License
26.98k stars 1.24k forks source link

Bug: Bug with After event on restoring snapshot #4860

Open mbushpilot2b opened 5 months ago

mbushpilot2b commented 5 months ago

XState version

XState version 5

Description

Bug where the actor when restored with a context does not continue "after" some time. The second actor is started up with a snapshot of the first actor when it was in the idle state. The second actor does not continue after being restored it freezes. The after event never fires.

Expected result

Continue where it left off.

Actual result

Does not continue, gets frozen and after event never fires.

Reproduction

https://codesandbox.io/p/devbox/wg56w2?migrateFrom=dv3cfs

Additional context

No response