-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Enable a disabled useQuery outside of setup() -- alpha 12 #1082
Comments
Tried using |
Also worth mentioning that |
I noticed that using the client like the docu suggests is also leading to the warning for me. But providing the Client in the main.js (there is my root) with provideApolloClient(defaultClient) works for me.
|
is this still an issue? t least I have the same problem upgrading to Vue3 and I can't find where it comes from... |
Describe the bug
Using
useQuery
and attempting to enable a disabled query when used outside ofsetup()
. Looks like the ApolloClient is coming back asnull
.Logging out the following in
useApolloClient
...To Reproduce
Steps to reproduce the behavior:
/packages/test-e2e-composable-vue3/src/components/NoSetupQuery.vue
<script>
tag with what you see belowno-setup-query
test.Expected behavior
I expect the default ApolloClient, provided using
provideApolloClient()
, to be found byuseQuery()
and and for the query to execute once enabled.Versions
vue: 2.6 w/
@vue/composition-api
pluginvue-apollo:
4.0.0-alpha.12
apollo-client:
3.2.2
The text was updated successfully, but these errors were encountered: