Problem with spawning actors from persisted state #4226
-
This seems to be a well-known issue. Hope this can still be of value. Are there any solutions to this at the moment? https://codesandbox.io/p/sandbox/need-8598mq?file=%2Fsrc%2Ftodos.machine.ts%3A5%2C48 I'm working on adding persistent storage to the official Todo-MVC app for Xstate + Vue. When I try to rehydrate from See screenshot below. 8 is a "retrieved" actors from storage, 9 is a fresh one that was added on the client. I put "retrieved" in quotes, because reading the code in I'd also love to know some ways to debug something like this -- is there a way to show all spawned actors that are 'running'? Also triedDoing it with
result: same behaviour Possibly related |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Persisting invoked actors is solved in XState v5 and will be solved for spawned actors in XState v5. There are no plans to make this work for v4 due to complexity of the solution. |
Beta Was this translation helpful? Give feedback.
-
Ok, so I'd wanna migrate my project to v5. Two questions:
|
Beta Was this translation helpful? Give feedback.
Persisting invoked actors is solved in XState v5 and will be solved for spawned actors in XState v5. There are no plans to make this work for v4 due to complexity of the solution.
#3921