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

Use prop "helmetKey" if it's present as primary attribute. #282

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

emilecantin
Copy link

This allows more fine-grained control over which tags are duplicated vs
overwritten.

  • Tags of the same type with the same value in "helmetKey" will be overwritten, even if the would normally be duplicated.
  • Tags of the same type with different values in "helmetKey" will be duplicated, even if they would normally be overwritten.

This allows more fine-grained control over which tags are duplicated vs
overwritten.
Tags of the same type with the same value in "helmetKey"
will be overwritten, even if the would normally be duplicated.
Tags of the same type with different values in "helmetKey" will be
duplicated, even if they would normally be overwritten.
@CLAassistant
Copy link

CLAassistant commented May 15, 2017

CLA assistant check
All committers have signed the CLA.

@emilecantin
Copy link
Author

Provides a way to solve #103

@codecov
Copy link

codecov bot commented May 15, 2017

Codecov Report

Merging #282 into master will increase coverage by 0.62%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #282      +/-   ##
==========================================
+ Coverage   97.59%   98.22%   +0.62%     
==========================================
  Files           3        3              
  Lines         291      281      -10     
==========================================
- Hits          284      276       -8     
+ Misses          7        5       -2
Impacted Files Coverage Δ
src/HelmetConstants.js 100% <ø> (ø) ⬆️
src/HelmetUtils.js 97.66% <33.33%> (+0.8%) ⬆️
src/Helmet.js 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 86276f3...c1aecb7. Read the comment docs.

@kulakowka
Copy link
Contributor

@cwelch5 We need this feature too. Please accept this pull request.

@tohjustin
Copy link

What's the status of this PR? I think I can help to resolve the current conflicts in src/HelmetUtils.js if needed 😄

@alex-karo
Copy link

Can I help something for resolve problems?

@mrkam2
Copy link

mrkam2 commented Apr 19, 2018

Is this a dead project?

@cwelch5
Copy link
Contributor

cwelch5 commented Apr 23, 2018

@mrkam2 Nope, trying to get some help in managing it. Sorry we've been a bit unresponsive.

// Special rule for 'key' prop, which takes over the normal priority mechanism
if (attributeKey === TAG_PROPERTIES.KEY) {
primaryAttributeKey = attributeKey;
break;

Choose a reason for hiding this comment

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

getting Unsemantic break errors on this line.

@kamranayub
Copy link

@emilecantin @haxxxton @alex-karo Would love to see this fixed and merged 👍 This makes it way easier to do dynamic favicon updates.

@StasiShulvi
Copy link

Any updates on it?
Can't override favicon in Safari (like here #430)

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.