B
B
BonBon Slick2020-01-05 08:35:27
Asynchronous programming
BonBon Slick, 2020-01-05 08:35:27

Wait for async ajax request and then render the page?

Data is loaded asynchronously, some methods that belong to the component instance must be called after the data has been loaded, or called again after.
How would you solve this problem?
https://github.com/nuxt/vue-meta/issues/504

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-01-05
@BonBonSlick

elementary: would show the spinner while the data is being loaded, and after loading it would draw them.
but this is detrimental, it is much better to immediately give and render the necessary data than to request them later.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question