diff --git a/client/src/app.tsx b/client/src/app.tsx index ff38d1aafa04..5467ad061cc8 100644 --- a/client/src/app.tsx +++ b/client/src/app.tsx @@ -1,4 +1,4 @@ -import React, { useEffect } from "react"; +import React, { useEffect, useRef, useState } from "react"; import { Navigate, Routes, @@ -43,9 +43,12 @@ const WritersHomepage = React.lazy(() => import("./writers-homepage")); const Sitemap = React.lazy(() => import("./sitemap")); const Playground = React.lazy(() => import("./playground")); const Observatory = React.lazy(() => import("./observatory")); +const Debug = React.lazy( + /* webpackChunkName: "debug" */ () => import("./ui/molecules/debug") +); function Layout({ pageType, children }) { - const { pathname } = useLocation(); + const { pathname, hash } = useLocation(); const [category, setCategory] = React.useState( getCategoryByPathname(pathname) ); @@ -71,6 +74,11 @@ function Layout({ pageType, children }) { {children}