perf: add eventbus unmount in more places and optimise stats tab

This commit is contained in:
David Ralph
2021-08-20 22:06:40 +01:00
parent afcead634b
commit ef2f666ccf
12 changed files with 26 additions and 10 deletions

View File

@@ -355,6 +355,10 @@ export default class Background extends PureComponent {
this.setBackground();
}
componentWillUnmount() {
EventBus.off('refresh');
}
render() {
if (this.state.video === true) {
const enabled = (setting) => {