Skip to content

Fix initialTransition for invoked system IDs#5503

Open
ShipItAndPray wants to merge 2 commits intostatelyai:mainfrom
ShipItAndPray:fix/initial-transition-systemid
Open

Fix initialTransition for invoked system IDs#5503
ShipItAndPray wants to merge 2 commits intostatelyai:mainfrom
ShipItAndPray:fix/initial-transition-systemid

Conversation

@ShipItAndPray
Copy link
Copy Markdown

Fixes #5454.\n\n was creating an inert actor scope by instantiating the target logic through , which meant invoked children with a were effectively evaluated twice during the initial snapshot path. That could register the same system ID more than once and throw.\n\nThis changes the inert scope to use instead, keeping pure while still providing the scope properties needed by transition logic. A regression test covers the case.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 12, 2026

🦋 Changeset detected

Latest commit: d267be8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
xstate Patch
@xstate/react Patch
@xstate/solid Patch
@xstate/svelte Patch
@xstate/vue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ShipItAndPray
Copy link
Copy Markdown
Author

Added a patch changeset in d267be8 to satisfy the release note requirement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: initialTransition fails when invoke has systemId

2 participants