Skip to content
TypeScript

perf(web): AnimatedHeight compiles with the React Compiler (#20562)

Julius Marminge16e6a6ab50c3
diff --git a/apps/web/src/components/AnimatedHeight.tsx b/apps/web/src/components/AnimatedHeight.tsx
index d67c53e667b..84d01882474 100644
--- a/apps/web/src/components/AnimatedHeight.tsx
+++ b/apps/web/src/components/AnimatedHeight.tsx
@@ -26,7 +26,11 @@ export function AnimatedHeight({
);
}, HEIGHT_TRANSITION_FALLBACK_MS);
return () => window.clearTimeout(timeoutId);
- }, [heightState.height, heightState.isClipping]);
+ }, [
+ // oxlint-disable-next-line react/exhaustive-effect-dependencies -- A height change mid-transition starts a new transition, so the fallback timer restarts.
+ heightState.height,
+ heightState.isClipping,
+ ]);
useLayoutEffect(() => {
if (holdHeight) return;