Skip to content

Commit a84b993

Browse files
committed
fix: remove loading extension listener to prevent multiple alerts when moving from PDP to editor
1 parent 257dc82 commit a84b993

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/scratch-gui/src/lib/vm-listener-hoc.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ const vmListenerHOC = function (WrappedComponent) {
6969
}
7070
componentWillUnmount () {
7171
this.props.vm.removeListener('PERIPHERAL_CONNECTION_LOST_ERROR', this.props.onShowExtensionAlert);
72+
this.props.vm.removeListener('EXTENSION_DATA_LOADING', this.props.onExtensionDataLoading);
73+
7274
if (this.props.attachKeyboardEvents) {
7375
document.removeEventListener('keydown', this.handleKeyDown);
7476
document.removeEventListener('keyup', this.handleKeyUp);

0 commit comments

Comments
 (0)