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 757e45c commit cb0ab57Copy full SHA for cb0ab57
packages/vue-apollo-composable/src/util/loadingTracking.ts
@@ -13,7 +13,7 @@ export interface AppLoadingTracking extends LoadingTracking {
13
14
export function getAppTracking () {
15
const vm = getCurrentInstance() as CurrentInstance | null
16
- const root = vm?.$root ?? vm?.root
+ const root = vm?.$root ?? vm?.root ?? vm?.proxy?.$root as CurrentInstance | null | undefined
17
if (!root) {
18
throw new Error('Instance $root not found')
19
}
0 commit comments