S
S
sldo_ru2020-05-19 16:30:48
Vue.js
sldo_ru, 2020-05-19 16:30:48

How to load data from DB before rendering in Vue?

There is a component, the data comes from the database, the problem is that sometimes, when the page is rendered, the data is not loaded, the most interesting thing is that they do not appear on the page at all. When switching between routes, it happens that the page is rendered, but the data from the database is not, even after 30 seconds nothing happens

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Pautov, 2020-05-19
@bootd

beforeRoute - calling next once the data has loaded

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question