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
`Event "${event.type}" was sent to stopped actor "${this.id} (${this.sessionId})". This actor has already reached its final state, and will not transition.\nEvent: ${eventString}`
sadn1ck
changed the title
Bug: Sending an event with unserializable data to stopped actor throws an error
Bug: Sending an event with unserializable data to stopped actor throws an error (in development)
Jul 31, 2024
XState version
XState version 5
Description
Hey folks! Have made a repro which has all these details -
Essentially -
Sending event to a stopped actor
xstate/packages/core/src/createActor.ts
Lines 657 to 671 in 51d4c4f
Expected result
I expect to not throw.
Actual result
An error was thrown for unserializable data.
Reproduction
https://stackblitz.com/edit/vitejs-vite-pl8fht?file=src%2Fmain.ts&terminal=dev
Additional context
Let me know if the repro is not clear! Thanks for all your work!
The text was updated successfully, but these errors were encountered: