Skip to content

Commit 8dd0b56

Browse files
authored
docs(errors): update suppressHydrationWarning section (#76521)
## Why? We should clarify that React will **not** attempt to patch mismatched text content when using `suppressHydrationWarning`. - Related: reactjs/react.dev#7651 - x-ref: #75890
1 parent c505a4c commit 8dd0b56

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

errors/react-hydration-error.mdx

+5
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ Sometimes content will inevitably differ between the server and client, such as
7575
<time datetime="2016-10-25" suppressHydrationWarning />
7676
```
7777

78+
> **Good to know:**
79+
>
80+
> - This only works one level deep, and is intended to be an escape hatch. Don’t overuse it.
81+
> - React will **not** attempt to patch mismatched text content when `suppressHydrationWarning={true}` is set.
82+
7883
## Common iOS issues
7984

8085
iOS attempts to detect phone numbers, email addresses, and other data in text content and convert them into links, leading to hydration mismatches.

0 commit comments

Comments
 (0)