Skip to content

Commit 1233e37

Browse files
committed
fix: Terminal component can leak observers
1 parent 675c6ad commit 1233e37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: plugins/plugin-codeflare/src/components/Terminal.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ export default class XTerm extends React.PureComponent<Props, State> {
188188
}
189189
})
190190
observer.observe(xtermContainer)
191+
this.cleaners.push(() => observer.disconnect())
191192
}
192193

193194
/**

0 commit comments

Comments
 (0)