-
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Sep 28, 2020
Replies: 1 comment
-
const data = getData();
loadData(data); The getData().then(loadData); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
data
returned bygetData()
is a promise.So, you may need to do like this: