TypeScript
perf(web): the browser surface slot compiles with the React Compiler (#20542)
Julius Marminge7a08cdf5f285
diff --git a/apps/web/src/browser/BrowserSurfaceSlot.tsx b/apps/web/src/browser/BrowserSurfaceSlot.tsxindex 90246520588..26aa15c08fa 100644--- a/apps/web/src/browser/BrowserSurfaceSlot.tsx+++ b/apps/web/src/browser/BrowserSurfaceSlot.tsx@@ -87,7 +87,13 @@ export function BrowserSurfaceSlot(props: {useLayoutEffect(() => {presentationRef.current = { visible, cornerRadius, zIndex };updateRef.current?.();- }, [cornerRadius, layoutVersion, visible, zIndex]);+ }, [+ cornerRadius,+ // oxlint-disable-next-line react/exhaustive-effect-dependencies -- A layoutVersion bump means the slot moved without resizing, so it re-presents at the new position.+ layoutVersion,+ visible,+ zIndex,+ ]);return <div ref={elementRef} className={className} data-browser-surface-slot={tabId} />;}