Replies: 2 comments
-
It has been a while since this question was asked, but it's only becoming more interesting now that, with XState 5, we have actor systems. In a fairly complex actor system, it would be very useful to be able to spawn dynamically loaded state machines (e.g. levels of a game) and to persist their state along with the parent. What's the recommended strategy to achieve this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
any news here? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Discussed in #2646
Originally posted by cunneen September 14, 2021
Hi,
We want to interpret asynchronously-retrieved machines at runtime similar to (but not identical to) #1123.
Based on the comments (specifically this comment from @davidkpiano) on that issue, I've got the below working.
My question is: is this still the recommended way to achieve this? Or is there a more elegant solution?
(NB: I haven't yet dived into the question of managing context but I suspect in my case I will be able to use a combination of initial child-context and event payload to do what I need)
Beta Was this translation helpful? Give feedback.
All reactions