The best way to control Claude Code, Codex and more from any computer or phone
perf(web): the preview mini player compiles without manual memoization (#20704)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 21:48 UTC
40b325bca0d61d9764a22a1df316e27011f2b923
1 file changed
+2
-5
apps/web/src/components/preview/ThreadPreviewMiniPlayer.tsx
+2
-5
@@ -5,7 +5,6 @@ import { PanelRightIcon, PictureInPicture2, XIcon } from "lucide-react";
5
import {
6
type PointerEvent as ReactPointerEvent,
7
type ReactNode,
8
- useCallback,
8
useEffect,
9
useLayoutEffect,
10
useRef,
@@ -264,10 +263,8 @@ function DeviceMiniPlayer({
263
);
264
const hostLabel =
265
deviceState.hosts.find((host) => host.id === source.hostId)?.label ?? "Device host";
267
- const cornerRadius = useCallback(
268
- (player: PreviewMiniPlayerSize) => resolveDeviceMiniPlayerCornerRadius(source.platform, player),
269
- [source.platform],
270
- );
266
+ const cornerRadius = (player: PreviewMiniPlayerSize) =>
267
+ resolveDeviceMiniPlayerCornerRadius(source.platform, player);
268
269
const openInPanel = () => {
270
usePreviewMiniPlayerStore.getState().close(threadRef);