react-helmet icon indicating copy to clipboard operation
react-helmet copied to clipboard

Metatags are not updating with dynamic data ( Data from API )

Open ursnj opened this issue 4 years ago • 2 comments

Im trying to populate <Helmet/> with dynamic data, ( from API ) but its not working when i share page in social networks like Facebook and Twitter, i think the purpose of Metatags are not full filling with this.

If some one has any solution please put it here.

you can find the issue here in my Website : https://www.watchpartys.com/watchpartys/watch/93038ad4-dbb5-462f-aeed-efbd91b0ff45

ursnj avatar Feb 01 '21 14:02 ursnj

I was having smilar issue . i have to add some dynamic content in script tag. So i have added the property encodeSpecialCharacters={true} & onChangeClientState={(newState, addedTags, removedTags) => console.log(newState, addedTags, removedTags)} in <Helmet> tag. So it worked for me. it detected my DOM changes

Prema07 avatar Apr 29 '21 13:04 Prema07

I was having smilar issue . i have to add some dynamic content in script tag. So i have added the property encodeSpecialCharacters={true} & onChangeClientState={(newState, addedTags, removedTags) => console.log(newState, addedTags, removedTags)} in tag. So it worked for me. it detected my DOM changes

Can you tell me more details on how to implement this?

haresh6x avatar Apr 22 '22 09:04 haresh6x