Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public componentWillUnmount() {
if (this._instance) {
events.triggerHandler(this._element, DX_REMOVE_EVENT);
this._instance.dispose();
}
this._optionsManager.dispose();
}
beforeDestroy(): void {
const instance = this.$_instance;
if (instance) {
events.triggerHandler(this.$el, DX_REMOVE_EVENT);
instance.dispose();
}
},