Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: "An inline child actor cannot be persisted." error. #5057

Open
mkhsanov opened this issue Aug 28, 2024 · 3 comments
Open

Bug: "An inline child actor cannot be persisted." error. #5057

mkhsanov opened this issue Aug 28, 2024 · 3 comments
Labels

Comments

@mkhsanov
Copy link

mkhsanov commented Aug 28, 2024

XState version

XState version 5

Description

In case if I try to create persisted snapshot with getPersistedSnapshot for actor which contains child spawned actors xstate raises an error.

Expected result

Crate persisted snapshot with child spawned actors.

Actual result

image

xstate raises an error with text "An inline child actor cannot be persisted."

Reproduction

https://codesandbox.io/p/live/47d8d896-243b-40a5-9a76-dafd43bb4847

Additional context

No response

@mkhsanov mkhsanov added the bug label Aug 28, 2024
@mkhsanov
Copy link
Author

You may find the error in the console output.

@davidkpiano
Copy link
Member

Have you tried moving the actor to not be an inline actor, and instead be a referenced actor?

@remake99
Copy link

remake99 commented Oct 9, 2024

Have you tried moving the actor to not be an inline actor, and instead be a referenced actor?

I have the same problem, but after following your instructions, it is resolved now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants