Addons listening to certain events break UIs
Similar to #1781 (closed), which I don't think was actually fixed (the event was removed)
Specifically, this is happening with onGetConnectedPlayer
.
Here is my guess:
Normal process:
- Event is received, but there is no listener so it's buffered
- onlineList loads and adds a listener and consumes the event
Addon process:
- Addon adds a listener on page load
- Event is received and sent to the addon (and not buffered)
- onlineList never receives the event
We can wait for onAfterRenderUi
so we know the UI has registered it's listeners, but that's not ideal if we don't know which UIs need which listeners first