fix: fold terminal pane frame cleanup into unmount effect (#3476)
This commit is contained in:
@@ -902,13 +902,10 @@ export default function TerminalPane({
|
||||
const snapshots = activityIsolationSnapshotRef.current
|
||||
return () => {
|
||||
restoreExpandedLayoutFrom(snapshots)
|
||||
cancelPendingPaneSizeRefreshFrames({ pendingPaneSizeRefreshFrameIdsRef })
|
||||
}
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
return () => cancelPendingPaneSizeRefreshFrames({ pendingPaneSizeRefreshFrameIdsRef })
|
||||
}, [])
|
||||
|
||||
const handleRestartCodexPane = useCallback(
|
||||
(paneId: number) => {
|
||||
const manager = managerRef.current
|
||||
|
||||
Reference in New Issue
Block a user