Przeglądaj źródła

ReduxDevTools: devToolsUnsubscribe in uninstall

Artur Paikin 7 lat temu
rodzic
commit
2392b1c7c0
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/plugins/ReduxDevTools.js

+ 1 - 0
src/plugins/ReduxDevTools.js

@@ -63,6 +63,7 @@ module.exports = class ReduxDevTools extends Plugin {
 
 
   uninstall () {
   uninstall () {
     if (this.withDevTools) {
     if (this.withDevTools) {
+      this.devToolsUnsubscribe()
       this.core.emitter.off('core:state-update', this.handleStateUpdate)
       this.core.emitter.off('core:state-update', this.handleStateUpdate)
     }
     }
   }
   }