Skip to content

Bug: Global errors can be caught while restoringSnapshot #5228

@christophe-g

Description

@christophe-g

XState version

XState version 5

Description

I am hitting a problematic scenario in production - yet failing to reproduce in a simple test case.

But basically, this is what I believe is happening:

Expected result

I am expecting the machine to end up in an error state only when the context is not able to be restored.

Actual result

Machine ends up in error state when global errors - not related to state restauration - are thrown

Reproduction

sorry, unable to give a simple repro

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions