-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useAsyncData
return value that pending
is true
at server side when server: false
#15714
Comments
useAsyncData
is server: false
useAsyncData
return value that pending
is true
as server side when server: false
useAsyncData
return value that pending
is true
as server side when server: false
useAsyncData
return value that pending
is true
at server side when server: false
I see your point here. But: Usually, Curious for suggestions/feedback |
My suggestion is a new I've been exploring this idea in a module I'm working on, you can check it out in nuxt-query. |
Thank you for your answer, I think I misunderstood the meaning of But in documentation, the According to the description here, I think the meaning is closer to |
I find the initial value of @danielroe, would you consider it to be a bug? Should the immediate option impact the initial value of pending? |
I also interpreted Let's say you want to display a loading spinner while the handler is being executed with Right now, there is no way to determine if the handler of the If the |
i had same issue and the only thing i did it is this
in setup script. and it works! |
Yes, indeed, I agree. |
We decided to introduce a Closing this discussion here 👍🏻 Follow-up on #18810 |
Environment
Linux
v16.14.2
3.0.0
1.0.0
[email protected]
vite
-
-
-
Reproduction
https://stackblitz.com/edit/nuxt-starter-qorbrt?file=app.vue
Open DevTool,
<NuxtWelcome />
not render at server side.Describe the bug
When we use
useAsyncData()
and setserver: false
. the return valuepending
will gettrue
at server side. It should befalse
? because this will not invoke at server side.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: