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
The Basic + SSR (file-based) example tries to hydrate the entire document, which is not ideal because if the user has a web extension that inserts elements into the dom (like Ghostery's tracker tally) React will log a Hydration failed because the initial UI does not match what was rendered on the server. error. The problem is when I try to SSR into a container element like React recommends I still get the same error. The __TSR_DEHYDRATED__ script is now inside the container, and apparently React doesn't like that.
Does anyone know how to take the Basic + SSR (file-based) example and make hydration work with a web extension like Ghostery installed?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The Basic + SSR (file-based) example tries to hydrate the entire document, which is not ideal because if the user has a web extension that inserts elements into the dom (like Ghostery's tracker tally) React will log a
Hydration failed because the initial UI does not match what was rendered on the server.
error. The problem is when I try to SSR into a container element like React recommends I still get the same error. The__TSR_DEHYDRATED__
script is now inside the container, and apparently React doesn't like that.Does anyone know how to take the Basic + SSR (file-based) example and make hydration work with a web extension like Ghostery installed?
Beta Was this translation helpful? Give feedback.
All reactions