Skip to content

Commit 182ec80

Browse files
perf(web): the thread find bar compiles with the React Compiler
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 70d60e0 commit 182ec80

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/web/reactCompiledFiles.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,5 @@ export const REACT_COMPILED_FILES = [
9696
"apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx",
9797
"apps/web/src/components/ThreadTerminalDrawer.tsx",
9898
"apps/web/src/components/settings/SettingsPanels.tsx",
99+
"apps/web/src/components/chat/ThreadFindBar.tsx",
99100
] as const;

‎apps/web/src/components/chat/ThreadFindBar.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ export function ThreadFindBar(props: ThreadFindBarProps) {
3030
if (!props.open) return;
3131
inputRef.current?.focus();
3232
inputRef.current?.select();
33-
}, [props.focusRequestId, props.open]);
33+
}, [
34+
// oxlint-disable-next-line react/exhaustive-effect-dependencies -- Each find shortcut bumps the request id, so an already-open bar refocuses and reselects its query.
35+
props.focusRequestId,
36+
props.open,
37+
]);
3438

3539
if (!props.open) return null;
3640

0 commit comments

Comments
 (0)