From 1ce6a1ec259d4150e7330defec23bd61993c0307 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Tue, 28 Jan 2025 19:49:41 -0800 Subject: [PATCH] Fixed hydration error from mismatched server-rendered HTML and client-side rendered content by unifying initial timestamp --- app/layout.tsx | 11 +++++++++-- lib/utils.ts | 9 ++++++++- stores/notifications/notifications-store.ts | 5 +++-- stores/workflow/history-middleware.ts | 3 ++- types/global.d.ts | 3 +++ 5 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 types/global.d.ts diff --git a/app/layout.tsx b/app/layout.tsx index 8a90f75d47..1a38b15008 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -9,11 +9,18 @@ export const metadata: Metadata = { export default function RootLayout({ children, -}: Readonly<{ +}: { children: React.ReactNode -}>) { +}) { return ( + +