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

Documentation on duplicate tags in <Head> is unclear #2749

Open
zachauten opened this issue Nov 5, 2024 · 0 comments
Open

Documentation on duplicate tags in <Head> is unclear #2749

zachauten opened this issue Nov 5, 2024 · 0 comments

Comments

@zachauten
Copy link

The docs on avoiding duplicate tags while modifying the <head> state that:

To ensure that the tag is not duplicated, Fresh supports setting the key prop. By giving matching elements the same key prop, only the last one will be rendered.

But it does not explain what determines which one will be "last". Is this something that can be controlled? I'm running into an issue where I've defined some default values in the head in my _app.tsx, but I want to override them in the route component, but the ones in _app.tsx are taking precedence.

Am I missing something? Thanks in advance!

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

No branches or pull requests

1 participant