Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxt): avoid preloading external routes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 17, 2022
1 parent 63d778b commit 50c4baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/components/nuxt-link.ts
Expand Up @@ -204,7 +204,7 @@ export function defineNuxtLink (options: NuxtLinkOptions) {
unobserve = null
await Promise.all([
nuxtApp.hooks.callHook('link:prefetch', to.value as string).catch(() => {}),
preloadRouteComponents(to.value as string, router).catch(() => {})
!isExternal.value && preloadRouteComponents(to.value as string, router).catch(() => {})
])
prefetched.value = true
})
Expand Down

0 comments on commit 50c4baf

Please sign in to comment.