Skip to content

Commit 96ea543

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

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎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)