Client only requests on Nuxt #6410
Unanswered
NoeReverse
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I`m using Nuxt 3 and trying to make requests with Vue Query client only. As documentation states, for server only requests I can use the suspense. But what if I want the request to be sent only on the client side? If I don't use suspense, the request is sent twice: once on the server, once on the client. To avoid this behavior, I use the option enabled: enabled: process.client. Is this correct? And is there another way to make requests only client-side?
Beta Was this translation helpful? Give feedback.
All reactions