mirror of
https://github.com/stablyai/orca.git
synced 2026-09-26 08:02:38 +00:00
perf: fold browser stream ref cleanup into unmount (#4144)
This commit is contained in:
@@ -1183,6 +1183,7 @@ function RemoteBrowserPagePane({
|
||||
remoteTabRefreshTimerRef.current = null
|
||||
}
|
||||
clearPendingRemoteWheel()
|
||||
restartRemoteStreamForViewportRef.current = () => {}
|
||||
if (streamFrameUrlRef.current) {
|
||||
URL.revokeObjectURL(streamFrameUrlRef.current)
|
||||
streamFrameUrlRef.current = null
|
||||
@@ -1783,12 +1784,6 @@ function RemoteBrowserPagePane({
|
||||
restartRemoteStreamForViewportRef.current = restartRemoteStreamForViewport
|
||||
}, [restartRemoteStreamForViewport, startRemoteStream])
|
||||
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
restartRemoteStreamForViewportRef.current = () => {}
|
||||
}
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
if (!isActive) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user