Rifat
useFetch status is success for a split second before changing to pending
I have the above code in my
index.vue
page. I also have another about.vue
page.
When index page renders in the browser for the first time (client-side navigation) the status is: idle => pending => success which is okay.
But when it renders for the second time the status is: success => pending => success
Why the status is success at first? Shouldn't it be pending from the start? How to fix it?
If I want to show a loading placeholder in that page, it will render contents at first then after a split second it will show placeholder which is a problem.3 replies
Why nitro doesn't wait for async plugins to complete operation?
I have a plugin that connects to mongodb. But connecting to mongodb takes some times. But nitro doesn't wait for that plugin to execute completely and then start the server. Instead it starts immediately (before connecting to mongodb) and starts responding. As a result error occurs.
Plugin code=>
4 replies
Nuxt doesn't update document when data is changed on created
I've this code:
So, by default
showSideBar
is true
. But if the window width is <= 800, then the showSideBar
becomes false.
Now that the value of showSideBar is false the value of showSideBar attribute in main element should change to false.
But it doesn't change43 replies