We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dea02d4 commit 05e3110Copy full SHA for 05e3110
apps/web/src/routes/__root.tsx
@@ -156,12 +156,9 @@ function EventRouter() {
156
const navigate = useNavigate();
157
const pathname = useRouterState({ select: (state) => state.location.pathname });
158
const pathnameRef = useRef(pathname);
159
+ pathnameRef.current = pathname;
160
const handledBootstrapThreadIdRef = useRef<string | null>(null);
161
- useEffect(() => {
162
- pathnameRef.current = pathname;
163
- }, [pathname]);
164
-
165
useEffect(() => {
166
const api = readNativeApi();
167
if (!api) return;
0 commit comments