We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21fca98 commit 76f19f6Copy full SHA for 76f19f6
packages/vue-apollo-composable/src/useQuery.ts
@@ -8,6 +8,7 @@ import {
8
getCurrentInstance,
9
onBeforeUnmount,
10
nextTick,
11
+ shallowRef,
12
} from 'vue-demi'
13
import { DocumentNode } from 'graphql'
14
import type {
@@ -218,7 +219,7 @@ export function useQueryImpl<
218
219
220
// Query
221
- const query: Ref<ObservableQuery<TResult, TVariables> | null | undefined> = ref()
222
+ const query: Ref<ObservableQuery<TResult, TVariables> | null | undefined> = shallowRef()
223
let observer: ObservableSubscription | undefined
224
let started = false
225
let ignoreNextResult = false
0 commit comments