How to use transform() asynchronously ? #2183
Unanswered
michaelandre0
asked this question in
Help (React)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to run the transform() function asynchronously with Promises inside and wait for them to resolve before returning the data.
I have tried to make the transform function async but then, when the form is actually sent, no data is sent, only a blank object , so this does not work.
If I don't make the transform function async, myAsyncFunc will return a Promise instead of the actual result of the function and I don't know what to do. I tried many things but nothing works.
Can anyone help on this ?
Beta Was this translation helpful? Give feedback.
All reactions