TypeScript
perf(web): the thread find bar compiles with the React Compiler (#20600)
Julius Marminge0b110ce0dbd7
diff --git a/apps/web/src/components/chat/ThreadFindBar.tsx b/apps/web/src/components/chat/ThreadFindBar.tsxindex e53f8cab351..aca1d6ca040 100644--- a/apps/web/src/components/chat/ThreadFindBar.tsx+++ b/apps/web/src/components/chat/ThreadFindBar.tsx@@ -30,7 +30,11 @@ export function ThreadFindBar(props: ThreadFindBarProps) {if (!props.open) return;inputRef.current?.focus();inputRef.current?.select();- }, [props.focusRequestId, props.open]);+ }, [+ // 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.+ props.focusRequestId,+ props.open,+ ]);if (!props.open) return null;