Skip to content

Commit 231eac8

Browse files
committed
add temp useeffect
1 parent 26465fe commit 231eac8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/app/[language]/layout.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react";
1+
import React, { useEffect } from "react";
22
import { Metadata } from "next";
33
import { DEFAULT_LANGUAGE_CODE } from "@/features/localization/localization.config";
44
import { cookies } from "next/headers";
@@ -47,6 +47,11 @@ export default function RootLayout({
4747
const initialThemeCookieValue =
4848
sanitizedThemeCookieValue || ThemeCookieValues.SYSTEM_DARK;
4949

50+
useEffect(() => {
51+
console.log("App mounted ounce");
52+
return () => console.log("App unmounted X")
53+
},[])
54+
5055
return (
5156
<PageLayoutComponent
5257
languageCode={languageCode}

0 commit comments

Comments
 (0)