diff --git a/apps/web/src/routes/__root.tsx b/apps/web/src/routes/__root.tsx index fd31b495361f3dc240d5537b1b0fc72d1ab16ea1..219a22d84ab141a93715f780bf258d2492fab491 100644 --- a/apps/web/src/routes/__root.tsx +++ b/apps/web/src/routes/__root.tsx @@ -133,9 +133,7 @@ function EventRouter() { const lastConfigIssuesSignatureRef = useRef(null); const handledBootstrapThreadIdRef = useRef(null); - useEffect(() => { - pathnameRef.current = pathname; - }, [pathname]); + pathnameRef.current = pathname; useEffect(() => { const api = readNativeApi();