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:
+1
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user