Skip to content
Discussion options

You must be logged in to vote

If you check what the server gives away, you'll see that both _main_h1_ are replaced. But, at hydration, it gets fixed to match the component template. You can also see it by adding export const csr = false; to the +page.js. Not sure why only the class gets fixed.

Such use of transformPageChunk doesn't seem to be correct, or at least good, because it causes a hydration mismatch, and such substitution cannot be done for pages rendered on the client.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eltigerchino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #12150 on October 29, 2024 02:45.