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

fix: Do not pass locale props to NuxtLink #2499

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

dadajam4
Copy link
Contributor

@dadajam4 dadajam4 commented Oct 18, 2023

πŸ”— Linked issue

#2498

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Inside NuxtLinkLocale, do not pass locale prop when rendering NuxtLink.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@kazupon
Copy link
Collaborator

kazupon commented Oct 19, 2023

@BobbieGoede
Can you review this PR?

@BobbieGoede
Copy link
Collaborator

@kazupon
Yes, on it!

Copy link
Collaborator

@BobbieGoede BobbieGoede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

We will have to keep in mind that if we decide to expand the functionality of the NuxtLinkLocale component with more props that we remove those properties before rendering as well.

I think adding tests to confirm the warning is not present is not critical (and not trivial either), so I might look into that later separately.

@BobbieGoede BobbieGoede merged commit d485f7f into nuxt-modules:main Oct 19, 2023
7 checks passed
@BobbieGoede
Copy link
Collaborator

Thanks for contributing!

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

Successfully merging this pull request may close these issues.

None yet

3 participants