Skip to content

Commit bc644c7

Browse files
perf(web): AnimatedHeight compiles with the React Compiler
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 7111501 commit bc644c7

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/AnimatedHeight.tsx",
99100
] as const;

‎apps/web/src/components/AnimatedHeight.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ export function AnimatedHeight({
2626
);
2727
}, HEIGHT_TRANSITION_FALLBACK_MS);
2828
return () => window.clearTimeout(timeoutId);
29-
}, [heightState.height, heightState.isClipping]);
29+
}, [
30+
// oxlint-disable-next-line react/exhaustive-effect-dependencies -- A height change mid-transition starts a new transition, so the fallback timer restarts.
31+
heightState.height,
32+
heightState.isClipping,
33+
]);
3034

3135
useLayoutEffect(() => {
3236
if (holdHeight) return;

0 commit comments

Comments
 (0)