@devries-cameron20 / t3code-1 / commits / 49c51bb11a
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

perf(web): main app navigation compiles without manual memoization (#20690)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 16, 2026 at 21:49 UTC 49c51bb11a4ad21d572119b55eb746a6f071cadf
1 file changed +2 -2
apps/web/src/components/sidebar/mainAppLocation.ts
+2 -2
@@ -1,5 +1,5 @@
1 import { useLocation, useNavigate } from "@tanstack/react-router";
2 -import { useCallback, useEffect } from "react";
2 +import { useEffect } from "react";
3
4 export function isSidebarUtilityPage(pathname: string) {
5 return (
@@ -25,5 +25,5 @@ export function MainAppLocationTracker() {
25
26 export function useNavigateToMainApp() {
27 const navigate = useNavigate();
28 - return useCallback(() => navigate({ href: mainAppHref ?? "/" }), [navigate]);
28 + return () => navigate({ href: mainAppHref ?? "/" });
29 }