Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentWillUnmount() {
window.removeEventListener("resize", this._getWindowHeight);
NotificationStore.unlisten(this._onNotificationChange);
ChainStore.unsubscribe(this._chainStoreSub);
clearInterval(this.syncCheckInterval);
}
componentWillUnmount() {
ChainStore.unsubscribe(this._updateState);
}
reset() {
if (this.state.subbed) ChainStore.unsubscribe(this.chainStoreUpdate);
this.setState(this._getInitialState());
}
componentWillUnmount() {
ChainStore.unsubscribe(this.update);
}
componentWillUnmount() {
ChainStore.unsubscribe(this.forceUpdate);
}
componentWillUnmount() {
ChainStore.unsubscribe(this.update);
}
componentWillUnmount() {
ChainStore.unsubscribe(this.update);
}
static closeInstance(name) {
var instance = BrainkeyStoreFactory.instances.get(name);
if (!instance) throw new Error("unknown instance " + name);
var subscribed_instance_key = name + " subscribed_instance";
var subscribed_instance = BrainkeyStoreFactory.instances.get(
subscribed_instance_key
);
BrainkeyStoreFactory.instances.delete(subscribed_instance_key);
ChainStore.unsubscribe(subscribed_instance);
instance.clearCache();
}
}
componentWillUnmount() {
window.removeEventListener("resize", this._getWindowHeight);
NotificationStore.unlisten(this._onNotificationChange);
ChainStore.unsubscribe(this._chainStoreSub);
clearInterval(this.syncCheckInterval);
}