@pinia/colada
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -8,3 +8,3 @@ // src/use-mutation.ts | ||
shallowReactive, | ||
getCurrentScope, | ||
getCurrentScope as getCurrentScope2, | ||
computed as computed2, | ||
@@ -19,2 +19,3 @@ triggerRef, | ||
computed, | ||
getCurrentScope, | ||
onScopeDispose, | ||
@@ -27,5 +28,7 @@ ref, | ||
target.addEventListener(event, listener, options); | ||
onScopeDispose(() => { | ||
target.removeEventListener(event, listener); | ||
}); | ||
if (getCurrentScope()) { | ||
onScopeDispose(() => { | ||
target.removeEventListener(event, listener); | ||
}); | ||
} | ||
} | ||
@@ -165,3 +168,3 @@ var IS_CLIENT = typeof window !== "undefined"; | ||
const caches = shallowReactive(cachesRaw); | ||
const scope = getCurrentScope(); | ||
const scope = getCurrentScope2(); | ||
function ensureEntry(keyRaw, options) { | ||
@@ -357,3 +360,3 @@ if (process.env.NODE_ENV !== "production" && keyRaw.length === 0) { | ||
onScopeDispose as onScopeDispose2, | ||
getCurrentScope as getCurrentScope2, | ||
getCurrentScope as getCurrentScope3, | ||
watch as watch2, | ||
@@ -434,3 +437,3 @@ getCurrentInstance | ||
} | ||
if (getCurrentScope2()) { | ||
if (getCurrentScope3()) { | ||
onScopeDispose2(() => { | ||
@@ -437,0 +440,0 @@ }); |
{ | ||
"name": "@pinia/colada", | ||
"packageManager": "pnpm@8.14.1", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "description": "The smart data fetching layer for Pinia", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
156418
1362