Skip to content

Commit b73ca8b

Browse files
committed
style: lint
1 parent 1860dde commit b73ca8b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/data-loaders/defineColadaLoader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,9 @@ export function defineColadaLoader<Data>(
362362
// if the entry doesn't exist, create it with load and ensure it's loading
363363
!entry ||
364364
// we are nested and the parent is loading a different route than us
365-
(parentEntry && entry.pendingTo !== route)
365+
(parentEntry && entry.pendingTo !== route) ||
366366
// The user somehow rendered the page without a navigation
367-
|| !entry.pendingLoad
367+
!entry.pendingLoad
368368
) {
369369
// console.log(
370370
// `🔁 loading from useData for "${options.key}": "${route.fullPath}"`

src/data-loaders/defineLoader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,12 @@ export function defineBasicLoader<Data>(
299299
// if the entry doesn't exist, create it with load and ensure it's loading
300300
!entry ||
301301
// the existing pending location isn't good, we need to load again
302-
(parentEntry && entry.pendingTo !== route)
302+
(parentEntry && entry.pendingTo !== route) ||
303303
// we could also check for: but that would break nested loaders since they need to be always called to be associated with the parent
304304
// && entry.to !== route
305305
// the user managed to render the router view after a valid navigation + a failed navigation
306306
// https://github.com/posva/unplugin-vue-router/issues/495
307-
|| !entry.pendingLoad
307+
!entry.pendingLoad
308308
) {
309309
// console.log(
310310
// `🔁 loading from useData for "${options.key}": "${route.fullPath}"`

0 commit comments

Comments
 (0)