You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2018. It is now read-only.
Currently, there doesn't appear to be a way to tie into the widget lifecycle for when a widget is unmounted. This can be useful for cleanup activities that should occur, such as cleaning up event listeners (that can't be replaced with property callbacks) when a widget is unloaded.
Package Version: 0.1.2
Code
classWidgetextendsWidgetBase{constructor(){super();global.addEventListener('message',this.doSomething);}doSomething: ()=>{};// There's currently not a place to cleanup this event listener}