I have a question. Inside Nuxt's fetch
hook I have some asynchronous calls that are performed by Nuxt content API.
Some pieces of this data are then used inside mounted
hook.
But while Nuxt handles first request inside fetch
, the control flow passes to the mounted
hook and hence there's no needed data.
Yes, I tried uses something like if (!this.$fetchState.pending) return;
but obviously mounted
is called only once. Does anybody knows how can I force Nuxt to wait? Btw, the app is using static site generation and the component has property fetchOnServer
set to false.