Skip to content

Commit

Permalink
Dispose of Async on unmount to allow GC
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinTCoughlin committed Jan 19, 2025
1 parent e95ce38 commit d3c6ba6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export class EditorPanel extends React.Component<IEditorPanelProps, IEditorPanel
this._delayedChange = this._async.debounce(this._handleOnChanged, this.props.deferredValidationTime ? this.props.deferredValidationTime : 200);
}

public componentWillUnmount(): void {
this._async.dispose();
}

// public componentDidMount(): void {
// if (this.props.customMode !== undefined) {
// try {
Expand Down

0 comments on commit d3c6ba6

Please sign in to comment.