Skip to content

Commit 3b9d0bc

Browse files
oritwoendanielroe
authored andcommitted
fix(nuxt): pass deleteCount to splice in preloadRouteComponents (#34514)
1 parent 2701d1f commit 3b9d0bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/nuxt/src/app/composables/preload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export async function preloadRouteComponents (to: RouteLocationRaw, router: Rout
6868
}
6969
const promise = Promise.resolve((component as () => unknown)())
7070
.catch(() => {})
71-
.finally(() => promises.splice(promises.indexOf(promise)))
71+
.finally(() => promises.splice(promises.indexOf(promise), 1))
7272
promises.push(promise)
7373
}
7474

0 commit comments

Comments
 (0)