-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
Don't you feel the need for Context.unsubscribe() method?
E.g. I want my component to listen for event only if it is active. So i call Context.listen() in component's .activate() function (imagine I don't use viewmodels). Currently there is no way to unsubscribe when the component is deactivated, meaning the event handler will be called anyway. But i don't want to handle this event when the component is hidden because e.g. it changes look&feel of component based on event data - it's a waste of resources.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels