Commit 785938f
authored
fix(ui): render dark theme attrs on SSR html to stop hydration mismatch (#7622)
RootShell rendered <html> with no className/style, while the no-flash
script added class="dark" and color-scheme:dark to the client before
hydration -- causing a hydration-mismatch console error on every page
load. Render both attributes server-side instead, since the app is
dark-mode-only, and drop the now-redundant no-flash script.
Closes #76181 parent 590a8ef commit 785938f
2 files changed
Lines changed: 1 addition & 14 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | 150 | | |
155 | 151 | | |
156 | 152 | | |
| |||
177 | 173 | | |
178 | 174 | | |
179 | 175 | | |
180 | | - | |
| 176 | + | |
181 | 177 | | |
182 | 178 | | |
183 | 179 | | |
| |||
0 commit comments