From 6ad825ef2f9e10924577d22ef67d6af5a5e36f17 Mon Sep 17 00:00:00 2001 From: Elliot Braem <16282460+elliotBraem@users.noreply.github.com> Date: Tue, 30 Jan 2024 16:06:42 -0500 Subject: [PATCH] remove useEffect in app --- apps/builddao/widget/app.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/builddao/widget/app.jsx b/apps/builddao/widget/app.jsx index 711bf8ae..0773b66d 100644 --- a/apps/builddao/widget/app.jsx +++ b/apps/builddao/widget/app.jsx @@ -18,11 +18,11 @@ const Root = styled.div` ${theme}// can come from config `; -const [activeRoute, setActiveRoute] = useState(page); +// const [activeRoute, setActiveRoute] = useState(page); -useEffect(() => { - setActiveRoute(page); -}, [page]); +// useEffect(() => { +// setActiveRoute(page); +// }, [page]); function Router({ active, routes }) { // this may be converted to a module at devs.near/widget/Router @@ -74,9 +74,9 @@ const Content = styled.div` return ( - + - +