Closed Colonel-Sandvich closed 1 year ago
Add a simple wrapper function around the existing useQuery to set the lazy option to true.
useQuery
$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)
Yeah feel free to open a PR!
Released in https://github.com/wobsoriano/trpc-nuxt/releases/tag/v0.10.10
Thanks!
Add a simple wrapper function around the existing
useQuery
to set the lazy option to true.Equivalent to
@wobsoriano If this is something that you think is worth adding I can open a PR based on this diff (Playground changes optional)