File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -55,4 +55,4 @@ Object.keys(VueModule).forEach(function (key) {
55
55
} )
56
56
57
57
// Not implemented https://github.com/vuejs/core/pull/8111, falls back to getCurrentInstance()
58
- exports . hasInjectionContext = ( ) => ! ! VueCompositionAPI . getCurrentInstance ( )
58
+ exports . hasInjectionContext = ( ) => ! ! VueModule . getCurrentInstance ( )
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
+ import { getCurrentInstance } from 'vue'
2
3
3
4
var isVue2 = true
4
5
var isVue3 = false
@@ -75,5 +76,5 @@ export * from 'vue'
75
76
76
77
// Not implemented https://github.com/vuejs/core/pull/8111, falls back to getCurrentInstance()
77
78
export function hasInjectionContext ( ) {
78
- return ! ! VueCompositionAPI . getCurrentInstance ( )
79
+ return ! ! getCurrentInstance ( )
79
80
}
You can’t perform that action at this time.
0 commit comments