From e603ee1bdba8b5cdd2bf860a80644f7149aa8b08 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 28 Jan 2023 23:16:30 -0800 Subject: [PATCH] Remove unnecessary router updates --- components/Header/index.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/components/Header/index.tsx b/components/Header/index.tsx index ea329543..bae9e7be 100644 --- a/components/Header/index.tsx +++ b/components/Header/index.tsx @@ -68,13 +68,6 @@ const Header = () => { useEffect(() => () => unsubscribe(), []) - // Subscribe to router changes - useEffect(() => { - router.events.on('routeChangeStart', (url, { shallow }) => { - console.log(`routing to ${url}`, `is shallow routing: ${shallow}`) - }) - }, []) - // Methods: Event handlers (Buttons) function handleLeftMenuButtonClicked() { setLeftMenuOpen(!leftMenuOpen)