fix(nuxt): do not provide default prefetchOn prop (#28630)

This commit is contained in:
Daniel Roe 2024-08-21 16:34:02 +01:00
parent f8d23e210d
commit 4dfbec8e0f
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -253,10 +253,7 @@ export function defineNuxtLink (options: NuxtLinkOptions) {
},
prefetchOn: {
type: [String, Object] as PropType<NuxtLinkProps['prefetchOn']>,
default: options.prefetchOn || {
visibility: true,
interaction: false,
} satisfies NuxtLinkProps['prefetchOn'],
default: undefined,
required: false,
},
noPrefetch: {