The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 06:45 UTC
perf(web): the guide stop compiles without manual memoization (#20560)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 22:07 UTC
1e42057c97bad2194a836f73ce8a9b71930fc5be
1 file changed
+2
-2
apps/web/src/components/pullRequest/guide/GuideStop.tsx
+2
-2
@@ -13,7 +13,7 @@ import {
13
MessageCircleQuestionIcon,
14
MessageSquareIcon,
15
} from "lucide-react";
16
-import { useMemo, type ReactNode } from "react";
16
+import type { ReactNode } from "react";
17
18
import { getDiffLineStat } from "~/lib/diffRendering";
19
import { cn } from "~/lib/utils";
@@ -71,7 +71,7 @@ export function GuideStop({
71
onFinish: (() => void) | null;
72
onOpenFile: (path: string) => void;
73
}) {
74
- const { lettered, byExcerpt } = useMemo(() => letterStopNotes(stop), [stop]);
74
+ const { lettered, byExcerpt } = letterStopNotes(stop);
75
const excerptPaths = new Set(stop.excerpts.map((excerpt) => excerpt.path));
76
const otherFiles = stop.files.filter((file) => !excerptPaths.has(file.path));
77