We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06bf389 + 0de59fa commit fc74672Copy full SHA for fc74672
src/lib/vm-listener-hoc.jsx
@@ -55,6 +55,7 @@ const vmListenerHOC = function (WrappedComponent) {
55
}
56
57
componentWillUnmount () {
58
+ this.props.vm.removeListener('PERIPHERAL_DISCONNECT_ERROR', this.props.onShowAlert);
59
if (this.props.attachKeyboardEvents) {
60
document.removeEventListener('keydown', this.handleKeyDown);
61
document.removeEventListener('keyup', this.handleKeyUp);
0 commit comments