#matching invoked child machine?

1 messages · Page 1 of 1 (latest)

vestal leaf
#

I have a machine and in a state on that machine I invoke a child machine. The child machine has states.

Now, in my react component I need to match that child machine state. E.g "matches("parentState.childState")"

Is there a way of accomplishing this?

Before this I used child states and invoked a service but figured this would be a cleaner approach with a general machine to invoke.

hot patrol
#

The way I handle this is to get a reference to the invoked child and pass it to useActor

vestal leaf
#

@hot patrol Great! Thanks for input! Would you mind providing a simple example?