Skip to content

Bug: Parallel final states aren't actually final #5460

@tivac

Description

@tivac

XState version

XState version 5

Description

A child state under a parallel state with type: "final" set isn't actually final, and can still transition away to other sibling nodes.

Image

Expected result

I expected a final state to be final, and not allow transitions away.

Actual result

Events can transition away from the final state. The inspector even warns that it shouldn't be possible.

Image

Reproduction

https://codesandbox.io/p/devbox/xstate5-parallel-event-transitions-forked-lk73v7

Additional context

xstate@5.26

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