@devries-cameron20 / t3code Mirror · read-only / commits / 4c22df263f
Fork 0

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 composer path search hook compiles without manual memoization (#20595)

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

Julius Marminge committed Oct 16, 2026 at 22:03 UTC 4c22df263f0376184355395e60639dcf71cfce6d
1 file changed +1 -6
apps/web/src/lib/composerPathSearchState.ts
+1 -6
@@ -3,16 +3,11 @@ import {
3 type ComposerPathSearchTarget,
4 } from "@t3tools/client-runtime/state/threads";
5
6 -import { useMemo } from "react";
7 -
6 import { useComposerPathSearch as useComposerPathSearchQuery } from "../state/queries";
7
8 export function useComposerPathSearch(target: ComposerPathSearchTarget): ComposerPathSearchState {
9 const state = useComposerPathSearchQuery(target);
12 - const entries = useMemo(
13 - () => state.entries.map((entry) => ({ path: entry.path, kind: entry.kind })),
14 - [state.entries],
15 - );
10 + const entries = state.entries.map((entry) => ({ path: entry.path, kind: entry.kind }));
11 return {
12 entries,
13 error: state.error,