Commit 3163426
committed
fix(renderer): render fresh instead of hydrating a prerender snapshot
The markup in #react-root is not a server render of the tree — prerender-crawl
snapshots the app after it has mounted, fetched and run its effects, then injects
that. The first client render has none of it, so hydration could never match and
every page threw #418 before React discarded the DOM and rebuilt it anyway.
Routes reporting console errors in the build log fell from 547/572 to 5/572.1 parent b57d7cd commit 3163426
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
0 commit comments