Open MarianPalkus opened 2 years ago
Latest commit: a4d99919b77f812fd43fb34a76e9950ee2de5e09
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
@MarianPalkus is attempting to deploy a commit to the Stately Team on Vercel.
A member of the Team first needs to authorize it.
Might be related to #352.
Could you add an e2e test case for this? It would be way easier to review this with such test case in place
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/statelyai/xstate-viz/92v7KSAVXHzZ9qNA9TgkeUD91x4p
✅ Preview: https://xstate-viz-git-fork-marianpalkus-326fixsimulat-1a4f77-statelyai.vercel.app
Sure, added a test case. I hope it makes sense.
Might be related #348.
This PR fixes #326 by searching for child actors when simulating events:
findChildService
tosrc/utils.ts
to recursively search for child service with the targetsessionId
sessionId
of the even to process