How to get invoked child actor with correct state types in React? #5028
Unanswered
ersinakinci
asked this question in
Q&A
Replies: 1 comment
-
I'm wondering whether #4263 is relevant? @davidkpiano @Andarist |
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
-
I want to write a bit of React code to access my child actor's current state (using xState 5 and
@xstate/react
). I imagine that it should look something like this:My current attempt looks like this:
The problem is that
childState.value
isn't typed properly. None of my child machine's states come through in the typing.Any ideas on how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions