We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The setup: There's a pinia store that is used in a router guard, the store uses useQuery composable from @urql/vue
useQuery
@urql/vue
Because it tried to access vue instance in router guard the app returns the following error:
use* functions may only be called during the `setup()` or other lifecycle hooks.
As far as I can see the error comes from
urql/packages/vue-urql/src/useClient.ts
Line 104 in 25d114d
Am I doing something wrong?
https://stackblitz.com/edit/vitejs-vite-kudyigng
@urql/vue v1.4.2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The setup: There's a pinia store that is used in a router guard, the store uses
useQuery
composable from@urql/vue
Because it tried to access vue instance in router guard the app returns the following error:
As far as I can see the error comes from
urql/packages/vue-urql/src/useClient.ts
Line 104 in 25d114d
Am I doing something wrong?
Reproduction
https://stackblitz.com/edit/vitejs-vite-kudyigng
Urql version
@urql/vue v1.4.2
Validations
The text was updated successfully, but these errors were encountered: