Skip to content

Commit

Permalink
fix memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pomahtri committed Dec 14, 2024
1 parent 79a6225 commit 9f41978
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,10 @@ export class ContentView extends Component<ContentViewProps> {
componentDidUpdate(): void {
this.updateSizesInfo();
}

componentWillUnmount(): void {
resizeObserverSingleton.unobserve(
this.containerRef.current!,
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,10 @@ export class ResizableHeaderPanel extends Component<Props, State> {
componentDidUpdate(): void {
this.updateShownColumns();
}

componentWillUnmount(): void {
resizeObserverSingleton.unobserve(
this.ref.current!,
);
}
}

0 comments on commit 9f41978

Please sign in to comment.