-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
feat(router): add NuxtLink
support for useLink
#19514
base: master
Are you sure you want to change the base?
Conversation
Right now there is an alternative using <template>
<NuxtLink to="/someroute" custom #="{ navigate }">
<v-btn @click="navigate">Link</v-btn>
</NuxtLink>
</template> |
Router-link is available in nuxt right? How does using this instead behave differently? |
Both are there, this PR should be changed to allow render The linked issue explains the behavior... |
Sorry for the confusion: This PR was about adding |
That doesn't really answer my question. NuxtLink supports internal and external links but we already have that with to/href. Afaict the only other difference is prefetching but you haven't implemented that in useLink. |
e20cfec
to
2766105
Compare
4c970f9
to
6a3285f
Compare
Description
This PR allows use
useLink
withNuxtLink
, this Nuxt PR should be merged nuxt/nuxt#26522This will work only when:
To register NuxtLink globally we can use a plugin:
vuetify-nuxt-module
will provide an option to register NuxtLink globally: will allow also to use other name (will register both).resolves #17490