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

@@ -114,7 +114,7 @@ export default class Clock extends PureComponent {
}
componentWillUnmount() {
EventBus.remove('refresh');
EventBus.off('refresh');
}
render() {

View File

@@ -128,7 +128,7 @@ export default class DateWidget extends PureComponent {
}
componentWillUnmount() {
EventBus.remove('refresh');
EventBus.off('refresh');
}
render() {