We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26465fe commit 231eac8Copy full SHA for 231eac8
src/app/[language]/layout.tsx
@@ -1,4 +1,4 @@
1
-import React from "react";
+import React, { useEffect } from "react";
2
import { Metadata } from "next";
3
import { DEFAULT_LANGUAGE_CODE } from "@/features/localization/localization.config";
4
import { cookies } from "next/headers";
@@ -47,6 +47,11 @@ export default function RootLayout({
47
const initialThemeCookieValue =
48
sanitizedThemeCookieValue || ThemeCookieValues.SYSTEM_DARK;
49
50
+ useEffect(() => {
51
+ console.log("App mounted ounce");
52
+ return () => console.log("App unmounted X")
53
+ },[])
54
+
55
return (
56
<PageLayoutComponent
57
languageCode={languageCode}
0 commit comments