Improve event re-emitter logic across codebase #26383
Labels
A-Developer-Experience
A-Technical-Debt
O-Frequent
Affects or can be seen by most users regularly or impacts most users' first experience
T-Enhancement
Your use case
What would you like to do?
See matrix-org/matrix-js-sdk#3796
We should examine if this sort of issue happens in other parts of the codebase.
Why would you like to do it?
Lots of potential to cause bugs.
We should have a better way of listening to changes on objects that isn't based on manually setting up re-emitter logic.
How would you like to achieve it?
Requires deliberation, but observables (eg: https://rxjs.dev/) may make sense. For example, we could have an observable map of users that the memberlist would subscribe to.
Have you considered any alternatives?
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: