diff --git a/packages/vue-apollo-composable/src/useQuery.ts b/packages/vue-apollo-composable/src/useQuery.ts index 23e7ccdc..5b051c63 100644 --- a/packages/vue-apollo-composable/src/useQuery.ts +++ b/packages/vue-apollo-composable/src/useQuery.ts @@ -8,6 +8,7 @@ import { getCurrentInstance, onBeforeUnmount, nextTick, + shallowRef, } from 'vue-demi' import { DocumentNode } from 'graphql' import type { @@ -218,7 +219,7 @@ export function useQueryImpl< // Query - const query: Ref | null | undefined> = ref() + const query: Ref | null | undefined> = shallowRef() let observer: ObservableSubscription | undefined let started = false let ignoreNextResult = false