You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi the following code was not properly clearing EventEmitter events causing MaxListenersExceededWarning.
wallet.ts line 150
public destroy() {
networkEvents.off('network_change', this.onNetworkChange);
}
I was able to resolve the waring using
networkEvents.removeAllListeners('network_change');
or
networkEvents.removeAllListeners();
I am not familiar with EventEmitter so I just wanted to mainly report the issue.
The text was updated successfully, but these errors were encountered:
I am having a similar issue running the SDK on react-native [MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 101 network_change listeners added. Use emitter.setMaxListeners() to increase limit]. Keeps adding network_change listeners.
Hi the following code was not properly clearing EventEmitter events causing MaxListenersExceededWarning.
wallet.ts line 150
public destroy() {
networkEvents.off('network_change', this.onNetworkChange);
}
I was able to resolve the waring using
networkEvents.removeAllListeners('network_change');
or
networkEvents.removeAllListeners();
I am not familiar with EventEmitter so I just wanted to mainly report the issue.
The text was updated successfully, but these errors were encountered: