From 4dfbec8e0ff6870364ccf9b3bf3f2f31b3ea959f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 21 Aug 2024 16:34:02 +0100 Subject: [PATCH] fix(nuxt): do not provide default `prefetchOn` prop (#28630) --- packages/nuxt/src/app/components/nuxt-link.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/nuxt/src/app/components/nuxt-link.ts b/packages/nuxt/src/app/components/nuxt-link.ts index 3ed5722650..d2b9ad0d25 100644 --- a/packages/nuxt/src/app/components/nuxt-link.ts +++ b/packages/nuxt/src/app/components/nuxt-link.ts @@ -253,10 +253,7 @@ export function defineNuxtLink (options: NuxtLinkOptions) { }, prefetchOn: { type: [String, Object] as PropType, - default: options.prefetchOn || { - visibility: true, - interaction: false, - } satisfies NuxtLinkProps['prefetchOn'], + default: undefined, required: false, }, noPrefetch: {