Skip to content

Commit 936967c

Browse files
Fix hydration recovery crashes (#1062)
1 parent ba2c61e commit 936967c

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
"@tanstack/devtools-vite": "^0.7.0",
132132
"@tanstack/react-devtools": "^0.10.5",
133133
"@tanstack/react-query-devtools": "^5.100.11",
134-
"@tanstack/redact": "^0.0.18",
134+
"@tanstack/redact": "^0.0.19",
135135
"@types/hast": "^3.0.4",
136136
"@types/node": "^25.5.0",
137137
"@types/pg": "^8.20.0",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/ThemeProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const useTheme = () => {
145145
// Reads from DOM on client (matches what head script set), empty on server
146146
const getHtmlClass = createIsomorphicFn()
147147
.server(() => '')
148-
.client(() => document.documentElement.className)
148+
.client(() => document.documentElement?.className ?? '')
149149

150150
export function useHtmlClass(): string {
151151
return getHtmlClass()

0 commit comments

Comments
 (0)