File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -362,9 +362,9 @@ export function defineColadaLoader<Data>(
362
362
// if the entry doesn't exist, create it with load and ensure it's loading
363
363
! entry ||
364
364
// we are nested and the parent is loading a different route than us
365
- ( parentEntry && entry . pendingTo !== route )
365
+ ( parentEntry && entry . pendingTo !== route ) ||
366
366
// The user somehow rendered the page without a navigation
367
- || ! entry . pendingLoad
367
+ ! entry . pendingLoad
368
368
) {
369
369
// console.log(
370
370
// `🔁 loading from useData for "${options.key}": "${route.fullPath}"`
Original file line number Diff line number Diff line change @@ -299,12 +299,12 @@ export function defineBasicLoader<Data>(
299
299
// if the entry doesn't exist, create it with load and ensure it's loading
300
300
! entry ||
301
301
// the existing pending location isn't good, we need to load again
302
- ( parentEntry && entry . pendingTo !== route )
302
+ ( parentEntry && entry . pendingTo !== route ) ||
303
303
// we could also check for: but that would break nested loaders since they need to be always called to be associated with the parent
304
304
// && entry.to !== route
305
305
// the user managed to render the router view after a valid navigation + a failed navigation
306
306
// https://github.com/posva/unplugin-vue-router/issues/495
307
- || ! entry . pendingLoad
307
+ ! entry . pendingLoad
308
308
) {
309
309
// console.log(
310
310
// `🔁 loading from useData for "${options.key}": "${route.fullPath}"`
You can’t perform that action at this time.
0 commit comments