You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working with [email protected] in SSR, it seems that when an email address (in text) is present in the html content rendered, it causes a hydration issue.
Interweave SSR polyfill is in place, so everything works as expected.
There isn't an actual problem with the text itself, they are both rendered the same in both client and server.
For some peculiar reason though, when using say something like this:
cont html = "<div class=\"container-fluid p-6\"><h1>Some text with an email address [email protected] as text</h1></div>"
<Markup content={html} />
React will through a Hydration error, saying text is different between server and client (when it's actually the same): Hydration error: Server:"Some text with an email address " (note that server text stops the text in the error right before the whole address) Client:"Some text with an email address [email protected] as text"
When the email is inside an <a> tag it works fine. This works:
cont html = "<div class=\"container-fluid p-6\"><h1>Some text with an email address <a href=\"[email protected]\">[email protected]</a> as text</h1></div>"
<Markup content={html} />
And this works too (without the email in text):
cont html = "<div class=\"container-fluid p-6\"><h1>Some text without an email address as text</h1></div>"
<Markup content={html} />
The text was updated successfully, but these errors were encountered:
Thanks so much for this wonderful package.
Working with [email protected] in SSR, it seems that when an email address (in text) is present in the html content rendered, it causes a hydration issue.
Interweave SSR polyfill is in place, so everything works as expected.
There isn't an actual problem with the text itself, they are both rendered the same in both client and server.
For some peculiar reason though, when using say something like this:
React will through a Hydration error, saying text is different between server and client (when it's actually the same):
Hydration error:
Server:
"Some text with an email address "
(note that server text stops the text in the error right before the whole address)Client:
"Some text with an email address [email protected] as text"
When the email is inside an
<a>
tag it works fine. This works:And this works too (without the email in text):
The text was updated successfully, but these errors were encountered: