@devries-cameron20 / t3code-1 / commits / 4576827f41
Fork 0

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

perf(web): the browser favicon store compiles without manual memoization (#20546)

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

Julius Marminge committed Oct 16, 2026 at 22:17 UTC 4576827f4189a780e4dab131e4b974e1d1cb76cc
1 file changed +2 -5
apps/web/src/browserFaviconStore.ts
+2 -5
@@ -5,7 +5,6 @@ import {
5 } from "@t3tools/client-runtime/environment";
6 import type { DesktopPreviewFavicon, ScopedProjectRef, ScopedThreadRef } from "@t3tools/contracts";
7 import * as Option from "effect/Option";
8 -import { useMemo } from "react";
8 import { create } from "zustand";
9 import { createJSONStorage, persist } from "zustand/middleware";
10
@@ -199,10 +198,8 @@ export function registerFaviconProjectForThread(
198 export function useFaviconProjectRefForThread(threadRef: ScopedThreadRef): ScopedProjectRef | null {
199 const shell = useThreadShell(threadRef);
200 const shellProjectId = shell?.projectId ?? null;
202 - const shellProjectRef = useMemo(
203 - () => (shellProjectId ? scopeProjectRef(threadRef.environmentId, shellProjectId) : null),
204 - [shellProjectId, threadRef.environmentId],
205 - );
201 + const environmentId = threadRef.environmentId;
202 + const shellProjectRef = shellProjectId ? scopeProjectRef(environmentId, shellProjectId) : null;
203 const registered = useBrowserFaviconStore(
204 (state) => state.projectRefByThreadKey[scopedThreadKey(threadRef)] ?? null,
205 );