I want to fetch data from the server side, my code is like this:
The problem is when I visit the page first time, there is no data injected(I check the webpage source code), and I try the second time which is good, then I can always get data normally. here is the CLI log:
I notice that the blue number first time is too large than the second time visiting(maybe cause by cache), my question is why nuxt doesnât wait until fetching data completely? how can I fix that problem?
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c847">#c847</a>)</em></sub></div>