Skip to content
New issue

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

Adding :prefetch="true|false" to all links #5125

Closed
Guito opened this issue Apr 9, 2020 · 2 comments · Fixed by #5355
Closed

Adding :prefetch="true|false" to all links #5125

Guito opened this issue Apr 9, 2020 · 2 comments · Fixed by #5355

Comments

@Guito
Copy link
Contributor

@Guito Guito commented Apr 9, 2020

As seen in https://nuxtjs.org/api/components-nuxt-link/, prefetch can be enabled or disabled using the prefetch attribute.

Currently we only have no-prefetch, however, this is not enough if you want to disable prefetching globally and only having it locally (You can disable the global prefetching with: router.prefetchLinks: false)

@tmorehouse
Copy link
Member

@tmorehouse tmorehouse commented Apr 9, 2020

This would need to be a true, false or null prop (tri-state) where null means to use the global Nuxt setting.

@Guito
Copy link
Contributor Author

@Guito Guito commented Apr 17, 2020

Hello @tmorehouse,

Can I help implementing this? Is there any guide to start developing for the module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants