]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor: hasInjectionContext
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 17 May 2023 08:06:53 +0000 (10:06 +0200)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Wed, 17 May 2023 08:26:48 +0000 (10:26 +0200)
packages/pinia/src/rootStore.ts
packages/pinia/src/store.ts

index 0eab00dfd227ecf449bcea28b6e79e023086546f..1ee39576525256110b17b59fbe9021f836d76112 100644 (file)
@@ -1,6 +1,11 @@
-import { App, EffectScope, inject, InjectionKey, Ref } from 'vue-demi'
-// FIXME: move to vue-demi when available
-import { hasInjectionContext } from 'vue'
+import {
+  App,
+  EffectScope,
+  inject,
+  hasInjectionContext,
+  InjectionKey,
+  Ref,
+} from 'vue-demi'
 import {
   StateTree,
   PiniaCustomProperties,
index 57cc7b32741bca8406149afd05db4c7132001963..50b15444c089cd042e363d4549037e2fa44ecadd 100644 (file)
@@ -2,6 +2,7 @@ import {
   watch,
   computed,
   inject,
+  hasInjectionContext,
   getCurrentInstance,
   reactive,
   DebuggerEvent,
@@ -23,8 +24,6 @@ import {
   nextTick,
   isVue2,
 } from 'vue-demi'
-// FIXME: move to vue-demi when available
-import { hasInjectionContext } from 'vue'
 import {
   StateTree,
   SubscriptionCallback,