Skip to content
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

feat: add useClientSideAsyncQuery composable #560

Open
wants to merge 1 commit into
base: v5
Choose a base branch
from

Conversation

rebeccarich
Copy link

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
Copy link

netlify bot commented Oct 26, 2023

Deploy Preview for apollo-module ready!

Name Link
🔨 Latest commit a59ea18
🔍 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant