From 676d397ec2d5d718ba75042c5aa7e490886dddac Mon Sep 17 00:00:00 2001 From: Thomas Osmonson Date: Mon, 3 Aug 2020 16:45:23 -0500 Subject: [PATCH] fix: update navigation on pagechange --- src/components/side-nav.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/side-nav.tsx b/src/components/side-nav.tsx index 4d90d292..16b0d33e 100644 --- a/src/components/side-nav.tsx +++ b/src/components/side-nav.tsx @@ -155,7 +155,7 @@ const Navigation = () => { if (selected.items !== currentSection) { setSelected({ type: 'page', items: currentSection }); } - }, []); + }, [router.pathname]); const handleClick = (page: any) => { if (page.pages) {