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): file entry icons compile without manual memoization (#20703)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 21:48 UTC
19a760c3e32005e10eb96d33bad81aaa836a1306
1 file changed
+2
-5
apps/web/src/components/chat/PierreEntryIcon.tsx
+2
-5
@@ -1,5 +1,5 @@
1
import { FileIcon, FolderIcon } from "lucide-react";
2
-import { memo, useInsertionEffect, useMemo } from "react";
2
+import { memo, useInsertionEffect } from "react";
3
4
import { ensurePierreIconSprite, resolvePierreIconForEntry } from "../../pierre-icons";
5
import { cn } from "~/lib/utils";
@@ -67,10 +67,7 @@ export const PierreEntryIcon = memo(function PierreEntryIcon(props: {
67
className?: string;
68
}) {
69
useInsertionEffect(ensurePierreIconSprite, []);
70
- const icon = useMemo(
71
- () => resolvePierreIconForEntry(props.pathValue, props.kind, props.mimeType),
72
- [props.kind, props.pathValue, props.mimeType],
73
- );
70
+ const icon = resolvePierreIconForEntry(props.pathValue, props.kind, props.mimeType);
71
72
if (!icon) {
73
return props.kind === "directory" ? (