Need to support async function for fetch data #1432
Unanswered
thinksource
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have just the example of XState + React + TypeScript Template
I try to add another function:
and then I change the Machine into:
I find none of async function will work. How to fetch data from api for update state via Machine?
my whole example is:
https://codesandbox.io/s/thirsty-hawking-xmzlk?file=/src/index.tsx:376-676
Beta Was this translation helpful? Give feedback.
All reactions