Skip to content

Commit 1dbb4bf

Browse files
committed
fix: export onServerPrefetch was not found vuejs#1102
1 parent 0db8f2d commit 1dbb4bf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/vue-apollo-composable/src/useQuery.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import {
44
isRef,
55
computed,
66
watch,
7-
// @ts-expect-error
8-
onServerPrefetch,
97
getCurrentInstance,
108
onBeforeUnmount,
119
nextTick,
@@ -32,6 +30,10 @@ import { trackQuery } from './util/loadingTracking'
3230

3331
import type { CurrentInstance } from './util/types'
3432

33+
// fix issue https://github.com/vuejs/vue-apollo/issues/1102
34+
import * as VueDemi from 'vue-demi'
35+
const onServerPrefetch = VueDemi.onServerPrefetch
36+
3537
export interface UseQueryOptions<
3638
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3739
TResult = any,

0 commit comments

Comments
 (0)