You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -215,7 +215,7 @@ export function defineColadaLoader<Data, isLazy extends boolean>(
215
215
// )
216
216
if(entry.route.value!==to){
217
217
// ensure we call refetch instead of refresh
218
-
consttracked=entry.tracked.get(key.join('|'))
218
+
consttracked=entry.tracked.get(joinKeys(key))
219
219
reload=!tracked||hasRouteChanged(to,tracked)
220
220
}
221
221
@@ -322,7 +322,15 @@ export function defineColadaLoader<Data, isLazy extends boolean>(
322
322
// if the entry is null, it means the loader never resolved, maybe there was an error
323
323
if(this.staged!==STAGED_NO_VALUE){
324
324
this.data.value=this.staged
325
-
this.tracked.get(key.join('|'))!.ready=true
325
+
if(
326
+
process.env.NODE_ENV==='development'&&
327
+
!this.tracked.has(joinKeys(key))
328
+
){
329
+
console.warn(
330
+
`A query was defined with the same key as the loader "[${key.join(', ')}]" but with different "query" function.\nSee https://pinia-colada.esm.dev/#TODO`
331
+
)
332
+
}
333
+
this.tracked.get(joinKeys(key))!.ready=true
326
334
}
327
335
// we always commit the error unless the navigation was cancelled
328
336
this.error.value=this.stagedError
@@ -475,6 +483,8 @@ export function defineColadaLoader<Data, isLazy extends boolean>(
0 commit comments