Impossible rendering state? Trying to show a loading state for useAsyncData
I'm trying to render a loading state for while data is fetching. I'm having trouble hiding the loading state - it just stays.
3 Replies
I'm nue to Vue / Nuxt but this here really has me puzzled, should this be possible?
Template
Script:
Ok I must be doing something really obiously wrong because this reproduces with the most tiny component: https://stackblitz.com/edit/nuxt-starter-zdl7ze?file=pages%2Findex.vue,app.vue
Hi, I made it work from your example in the url with this:
Thanks, turns out I wan't using ".value" on epnding as well
It's still not really working because there is both data and pending is true
found a way 👍 just checking for both now