Skip to content

Commit bcaf705

Browse files
evhan55chrisgarrity
authored andcommitted
Resolves #3336: Prevent multiple peripheral alerts after language has been switched.
1 parent 14d0306 commit bcaf705

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/vm-listener-hoc.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const vmListenerHOC = function (WrappedComponent) {
5555
}
5656
}
5757
componentWillUnmount () {
58+
this.props.vm.removeListener('PERIPHERAL_DISCONNECT_ERROR', this.props.onShowAlert);
5859
if (this.props.attachKeyboardEvents) {
5960
document.removeEventListener('keydown', this.handleKeyDown);
6061
document.removeEventListener('keyup', this.handleKeyUp);

0 commit comments

Comments
 (0)