[base-controller] Implement utility function registerEventSubscriptions
for batch registering all internal events of a messenger client class
#4719
Labels
Motivation
.subscribe()
call in messenger client constructors. We should have a DRY-er way of doing this.EventSubscriptionMap
of its subscriptions (and associated handlers, selectors).subscribe
calls with flexible input data.EventSubscriptionMap
argument, thereby making the event handler and selector behavior programmable.Proof of Concept (WIP)
MessengerClient
Call Site:
AssetsContractController
The text was updated successfully, but these errors were encountered: