Skip to content

Commit

Permalink
docs(gotcha): Add an entry about hydration warnings (#2682)
Browse files Browse the repository at this point in the history
  • Loading branch information
machour authored Apr 7, 2022
1 parent e2ea9e4 commit ba63eeb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/pages/gotchas.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,15 @@ if (typeof document === "undefined") {
This will work for all JS environments (Node.js, Deno, Workers, etc.).

[esbuild]: https://esbuild.github.io/

## Browser extensions injecting code

You may run into this warning in the browser:

```
Warning: Did not expect server HTML to contain a <script> in <html>.
```

This is a hydration warning from React, and is most likely due to one of your browser extensions injecting scripts into the server-rendered HTML, creating a difference with the resulting HTML.

Check out the page in incognito mode, the warning should disappear.

0 comments on commit ba63eeb

Please sign in to comment.