File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import { installAppCompatProperties } from './compat/global'
29
29
import type { NormalizedPropsOptions } from './componentProps'
30
30
import type { ObjectEmitsOptions } from './componentEmits'
31
31
import type { DefineComponent } from './apiDefineComponent'
32
+ import type { EffectScope } from '@vue/reactivity'
32
33
33
34
export interface App < HostElement = any > {
34
35
version : string
@@ -71,6 +72,7 @@ export interface App<HostElement = any> {
71
72
_container : HostElement | null
72
73
_context : AppContext
73
74
_instance : ComponentInternalInstance | null
75
+ _scope : EffectScope
74
76
75
77
/**
76
78
* v2 compat only
@@ -229,6 +231,7 @@ export function createAppAPI<HostElement>(
229
231
_container : null ,
230
232
_context : context ,
231
233
_instance : null ,
234
+ _scope : scope ,
232
235
233
236
version,
234
237
@@ -402,7 +405,7 @@ export function createAppAPI<HostElement>(
402
405
const lastApp = currentApp
403
406
currentApp = app
404
407
try {
405
- return scope . run ( fn ) !
408
+ return app . _scope . run ( fn ) !
406
409
} finally {
407
410
currentApp = lastApp
408
411
}
You can’t perform that action at this time.
0 commit comments