TimelineWindow remove listener #4533
Labels
A-Documentation
T-Other
Questions, user support, anything else
X-Needs-Info
This issue is blocked awaiting information from the reporter
How can I remove the listener created with initiating a TimelineWindow: https://matrix-org.github.io/matrix-js-sdk/classes/matrix.TimelineWindow.html
Docs:
Note that constructing an instance of this class for a room adds a listener for RoomEvent.Timeline events which is never removed. In theory this should not cause a leak since the EventEmitter uses weak mappings.
We use it when we open a screen to show the timeline and want to remove the listener when we close the screen.
The text was updated successfully, but these errors were encountered: