Skip to content

Commit 915e754

Browse files
committed
refactor: hasInjectionContext
1 parent 6d41a5d commit 915e754

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

packages/pinia/src/rootStore.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
import { App, EffectScope, inject, InjectionKey, Ref } from 'vue-demi'
2-
// FIXME: move to vue-demi when available
3-
import { hasInjectionContext } from 'vue'
1+
import {
2+
App,
3+
EffectScope,
4+
inject,
5+
hasInjectionContext,
6+
InjectionKey,
7+
Ref,
8+
} from 'vue-demi'
49
import {
510
StateTree,
611
PiniaCustomProperties,

packages/pinia/src/store.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {
22
watch,
33
computed,
44
inject,
5+
hasInjectionContext,
56
getCurrentInstance,
67
reactive,
78
DebuggerEvent,
@@ -23,8 +24,6 @@ import {
2324
nextTick,
2425
isVue2,
2526
} from 'vue-demi'
26-
// FIXME: move to vue-demi when available
27-
import { hasInjectionContext } from 'vue'
2827
import {
2928
StateTree,
3029
SubscriptionCallback,

0 commit comments

Comments
 (0)