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 5839958 commit 78ec9a1Copy full SHA for 78ec9a1
packages/pinia/src/store.ts
@@ -886,7 +886,7 @@ export function defineStore(
886
// in test mode, ignore the argument provided as we can always retrieve a
887
// pinia instance with getActivePinia()
888
(__TEST__ && activePinia && activePinia._testing ? null : pinia) ||
889
- (currentInstance && inject(piniaSymbol))
+ (currentInstance && inject(piniaSymbol, null))
890
if (pinia) setActivePinia(pinia)
891
892
if (__DEV__ && !activePinia) {
0 commit comments