Skip to content

fix(hydrateRoot): fix the hydration mismatch note for React 18 - #4668

Open
saurabhdaware wants to merge 1 commit into
reactjs:mainfrom
saurabhdaware:fix/hydrateroot-note
Open

fix(hydrateRoot): fix the hydration mismatch note for React 18#4668
saurabhdaware wants to merge 1 commit into
reactjs:mainfrom
saurabhdaware:fix/hydrateroot-note

Conversation

@saurabhdaware

Copy link
Copy Markdown
Contributor

As per the breaking change mentioned in React 18 Upgrade Guide, hydration mismatch is now treated as an error instead of a warning and React doesn't try to patch text nodes.

I think the note on hydrateRoot wasn't updated for this change.

Let me know if you need some rephrasing or if I misunderstood some part. Thanks!

@saurabhdaware saurabhdaware changed the title fix(reference-react-dom-client): fix the hydration mismatch note as per React 18 fix(Reference ReactDOMClient): fix the hydration mismatch note for React 18 May 20, 2022
@github-actions

Copy link
Copy Markdown

Size Changes

Details

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

This PR introduced no changes to the javascript bundle 🙌

@saurabhdaware saurabhdaware changed the title fix(Reference ReactDOMClient): fix the hydration mismatch note for React 18 fix(hydrateRoot): fix the hydration mismatch note for React 18 May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants