fix: resolve hydration mismatch and NaN rendering errors

Added suppressHydrationWarning to html tag and implemented safe date/number handling in project and reading components.
This commit is contained in:
denshooter
2026-02-15 22:48:47 +01:00
parent cc8fff14d2
commit 5576e41ce0
4 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ export default async function RootLayout({
const cookieStore = await cookies();
const locale = cookieStore.get("NEXT_LOCALE")?.value || "en";
return (
<html lang={locale}>
<html lang={locale} suppressHydrationWarning>
<head>
<meta charSet="utf-8" />
</head>