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 0db8f2d commit 1dbb4bfCopy full SHA for 1dbb4bf
packages/vue-apollo-composable/src/useQuery.ts
@@ -4,8 +4,6 @@ import {
4
isRef,
5
computed,
6
watch,
7
- // @ts-expect-error
8
- onServerPrefetch,
9
getCurrentInstance,
10
onBeforeUnmount,
11
nextTick,
@@ -32,6 +30,10 @@ import { trackQuery } from './util/loadingTracking'
32
30
33
31
import type { CurrentInstance } from './util/types'
34
+// fix issue https://github.com/vuejs/vue-apollo/issues/1102
+import * as VueDemi from 'vue-demi'
35
+const onServerPrefetch = VueDemi.onServerPrefetch
36
+
37
export interface UseQueryOptions<
38
// eslint-disable-next-line @typescript-eslint/no-unused-vars
39
TResult = any,
0 commit comments