Skip to content
TypeScript

Update apps/web/src/routes/__root.tsx

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