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 3f82ddd commit c98a26bCopy full SHA for c98a26b
lib/v2/index.mjs
@@ -1,5 +1,5 @@
1
import Vue from 'vue'
2
-import VueCompositionAPI from '@vue/composition-api/dist/vue-composition-api.mjs'
+import VueCompositionAPI, { getCurrentInstance } from '@vue/composition-api/dist/vue-composition-api.mjs'
3
4
function install(_vue) {
5
_vue = _vue || Vue
@@ -45,5 +45,5 @@ export var KeepAlive = /*#__PURE__*/ createMockComponent('KeepAlive')
45
46
// Not implemented https://github.com/vuejs/core/pull/8111, falls back to getCurrentInstance()
47
export function hasInjectionContext() {
48
- return !!VueCompositionAPI.getCurrentInstance()
+ return !!getCurrentInstance()
49
}
0 commit comments