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

This commit is contained in:
Daniel Roe 2024-08-21 16:34:02 +01:00 committed by GitHub
parent 3e713d31dc
commit 66f4c5553e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

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: {