Hi everyone. I'm coming back to some state persistence code I've had commented out during the beta and I see this error:
Error: An inline child actor cannot be persisted.
at getPersistedSnapshot (raise-c8b9d708.development.esm.js:2331:13)
On this announcement: https://stately.ai/blog/announcing-xstate-v5-beta#deep-persistence
I see: In XState v5 beta, actors are now deeply (recursively) persisted. Invoked/spawned actors will be persisted, as well as actors invoked/spawned from those actors, and so on.
I have a number of invoked actors similar to this:
systemId: 'mySysId',
id: 'myId',
src: myImportedMachine,
},
Is this not allowed for persistence? If not, what can be changed to allow persisting? The main reason I have these child actors is to allow system communication.