Fix fullscreen infinite render loop in video embeds (#10807)

This commit is contained in:
Samuel Newman
2026-06-09 16:51:36 +03:00
committed by GitHub
parent 84c4223ff9
commit 22643c76d0
3 changed files with 26 additions and 25 deletions
@@ -108,10 +108,15 @@ export function useActiveVideoWeb() {
return {
active: activeViewId === id,
setActive: () => {
setActive: useCallback(() => {
setActiveView(id)
},
}, [setActiveView, id]),
currentActiveView: activeViewId,
sendPosition: (y: number) => sendViewPosition(id, y),
sendPosition: useCallback(
(y: number) => {
sendViewPosition(id, y)
},
[sendViewPosition, id],
),
}
}