Hey guys,
I think this is an internal moralis problem but I suppose its worth sharing.
Iām getting this warning in my react app.
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 accountChanged listeners added. Use emitter.setMaxListeners() to increase limit
this occurs when I use the onAccountChanged listener like so (as per documentation):
const close = Moralis.onAccountChanged(() => {
// do things
});
Any thoughts on what might be causing this?