We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2701d1f commit 3b9d0bcCopy full SHA for 3b9d0bc
1 file changed
packages/nuxt/src/app/composables/preload.ts
@@ -68,7 +68,7 @@ export async function preloadRouteComponents (to: RouteLocationRaw, router: Rout
68
}
69
const promise = Promise.resolve((component as () => unknown)())
70
.catch(() => {})
71
- .finally(() => promises.splice(promises.indexOf(promise)))
+ .finally(() => promises.splice(promises.indexOf(promise), 1))
72
promises.push(promise)
73
74
0 commit comments