I
I
ixotep2020-04-29 21:14:37
Vue.js
ixotep, 2020-04-29 21:14:37

Why is Nuxt not getting data from the server when reloading the page?

Hello!
The problem is this: when you go to the page, the data from the server is received and displayed, but when the page is reloaded, they disappear and a blank page is displayed. I receive data using axios. I tried both through asyncData() and through created(), tried to generate paths for dynamic routes, but all to no avail, the result is the same ...
Which method should be used?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question