nuxt-modules / apollo

Nuxt.js module to use Vue-Apollo. The Apollo integration for GraphQL.
https://apollo.nuxtjs.org
MIT License
929 stars 194 forks source link

feat: add useClientSideAsyncQuery composable #560

Open rebeccarich opened 8 months ago

rebeccarich commented 8 months ago

Similar to useAsyncQuery this is a convenience wrapper around Nuxt's useAsyncData that allows you to easily query the Apollo client. Unlike useAsyncQuery, the request will only be made from the browser and not the server.

The use case for this is if the responses from your GraphQL server are slow but you do not want to block the initial page render.

Let me know if there is already a way of achieving this that I missed!

netlify[bot] commented 8 months ago

Deploy Preview for apollo-module ready!

Name Link
Latest commit a59ea18c125cae6db65c12068b61f5c8e0bb817c
Latest deploy log https://app.netlify.com/sites/apollo-module/deploys/653ae6554d08bb0008b2cb53
Deploy Preview https://deploy-preview-560--apollo-module.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.