mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-29 22:51:49 +01:00
Fix undefined error when unmounting resize observer (#23)
This commit is contained in:
parent
1bc4e0c594
commit
b3b99402b8
@ -140,7 +140,7 @@ export const TileLayout = <T,>({ layoutTreeStateAtom, className, renderContent,
|
||||
newResizeObserver.observe(overlayContainerRef.current);
|
||||
setResizeObserver(newResizeObserver);
|
||||
return () => {
|
||||
resizeObserver.disconnect();
|
||||
newResizeObserver.disconnect();
|
||||
};
|
||||
}
|
||||
}, [updateTransforms, overlayContainerRef]);
|
||||
|
Loading…
Reference in New Issue
Block a user