@pinia/colada
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -135,2 +135,7 @@ // src/use-mutation.ts | ||
function ensureEntry(keyRaw, options) { | ||
if (process.env.NODE_ENV !== "production" && keyRaw.length === 0) { | ||
throw new Error( | ||
`useQuery() was called with an empty array as the key. It must have at least one element.` | ||
); | ||
} | ||
const key = keyRaw.map(stringifyFlatObject); | ||
@@ -313,2 +318,3 @@ console.log("\u2699\uFE0F Ensuring entry", key); | ||
onScopeDispose as onScopeDispose2, | ||
getCurrentScope as getCurrentScope2, | ||
watch, | ||
@@ -388,4 +394,6 @@ getCurrentInstance | ||
} | ||
onScopeDispose2(() => { | ||
}); | ||
if (getCurrentScope2()) { | ||
onScopeDispose2(() => { | ||
}); | ||
} | ||
if (IS_CLIENT) { | ||
@@ -392,0 +400,0 @@ if (options.refetchOnWindowFocus) { |
{ | ||
"name": "@pinia/colada", | ||
"packageManager": "pnpm@8.14.1", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"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
136889
1214
10