G
G
GreenMan18992019-06-20 03:31:30
JavaScript
GreenMan1899, 2019-06-20 03:31:30

How to fetch data into a component?

Probably does not work because of asynchrony.
5d0ad3db8e2fb879018779.png
5d0ad3e132bf8281932369.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Shvedov, 2019-06-20
@GreenMan1899

Nothing is returned from the fetchData function, so it's undefined there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question