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

Feature Request: useLazyQuery #89

Closed
Colonel-Sandvich opened this issue Apr 15, 2023 · 2 comments
Closed

Feature Request: useLazyQuery #89

Colonel-Sandvich opened this issue Apr 15, 2023 · 2 comments

Comments

@Colonel-Sandvich
Copy link
Contributor

Add a simple wrapper function around the existing useQuery to set the lazy option to true.

$client.post.getPosts.useLazyQuery(<input>)

Equivalent to

$client.post.getPosts.useQuery(<input>, { lazy: true })

@wobsoriano If this is something that you think is worth adding I can open a PR based on this diff (Playground changes optional)

@wobsoriano
Copy link
Owner

Yeah feel free to open a PR!

@wobsoriano
Copy link
Owner

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

No branches or pull requests

2 participants