We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support either Nuxt config override or feat a config option to override prefetch behavior.
The default behavior of internal links are prefetchOn: { visibility: true } in Nuxt.
prefetchOn: { visibility: true }
Changing it only affects <NuxtLink>. Nuxt UI components featuring links ignore this parameter and preserve prefetching on visibility.
<NuxtLink>
// nuxt.config.ts experimental: { defaults: { nuxtLink: { // Don't affect Nuxt UI components prefetchOn: { interaction: true, visibility: false }, }, }, },
I can add props on each component (no-prefetch or prefetch-on="interaction") thought but could be comfort to be able to change the default behavior
no-prefetch
prefetch-on="interaction"
Thanks.
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Support either Nuxt config override or feat a config option to override prefetch behavior.
The default behavior of internal links are
prefetchOn: { visibility: true }
in Nuxt.Changing it only affects
<NuxtLink>
. Nuxt UI components featuring links ignore this parameter and preserve prefetching on visibility.I can add props on each component (
no-prefetch
orprefetch-on="interaction"
) thought but could be comfort to be able to change the default behaviorThanks.
Additional context
No response
The text was updated successfully, but these errors were encountered: