Fix emitter handler leak in ThreadView (#10803)
* Fix emitter handler leak in ThreadView * Help gc react stateNodes
This commit is contained in:
parent
c7ed23e972
commit
499d8110b3
2 changed files with 8 additions and 11 deletions
|
@ -294,6 +294,9 @@ export default class TextualBody extends React.Component<IBodyProps, IState> {
|
|||
this.unmounted = true;
|
||||
unmountPills(this.pills);
|
||||
unmountTooltips(this.tooltips);
|
||||
|
||||
this.pills = [];
|
||||
this.tooltips = [];
|
||||
}
|
||||
|
||||
public shouldComponentUpdate(nextProps: Readonly<IBodyProps>, nextState: Readonly<IState>): boolean {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue