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(nuxt): allow configuring default <NuxtLink>
options
#23724
Conversation
Run & review this pull request in StackBlitz Codeflow. |
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
<NuxtLink>
options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I had concerns about default serialization behavior if users provided null
/undefined
/false
to experimental.defaults.nuxtLink
but defu
+ TypeScript should prevent that π
Came to my mind too but I also think that should be fine π |
π Linked issue
β Type of change
π Description
This PR allows configuring NuxtLink defaults, such as trailing slash behaviour and default classes/prefetch behaviour. All of these are serialisable and initially can be set in
experimental.defaults.nuxtLink
but we will likely want to move to appConfig orapp/
directory later on.Example:
π Checklist