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
If subscribing to an event using addEventListener in event.ts, this._eventListeners does not correctly concatenate if listening to multiple events with the same name. Therefore only the final listener will fire.
This is an issue if subscribing to the same event name multiple times in one script. We can see this by adding extra logging:
If subscribing to an event using
addEventListener
inevent.ts
,this._eventListeners
does not correctly concatenate if listening to multiple events with the same name. Therefore only the final listener will fire.This is an issue if subscribing to the same event name multiple times in one script. We can see this by adding extra logging:
this._eventListeners
after adding should contain'TradeEvent' => [ 0, 2 ]
, but instead is only'TradeEvent' => [ 2 ]
I'm fixing this bug, but also wanted to open an issue to document it 😊
The text was updated successfully, but these errors were encountered: