Skip to content

Commit

Permalink
fix: Terminal component can leak observers
Browse files Browse the repository at this point in the history
  • Loading branch information
starpit committed Sep 16, 2022
1 parent 675c6ad commit 1233e37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/plugin-codeflare/src/components/Terminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export default class XTerm extends React.PureComponent<Props, State> {
}
})
observer.observe(xtermContainer)
this.cleaners.push(() => observer.disconnect())
}

/**
Expand Down

0 comments on commit 1233e37

Please sign in to comment.