Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.nextExecutionAddress = null
this.hasLoaded = false
this.inspectionAddress = null
this.cellSprite = null
this.nextExecutionSprite = null
this.sprites = []
this.state = {
height: 0,
width: 0
}
// oddly needs to happen here as unmount can happen AFTER a new instance has mounted :s
PubSub.unsubscribe('CORE_ACCESS')
PubSub.unsubscribe('RESET_CORE')
PubSub.unsubscribe('NEXT_EXECUTION')
PubSub.subscribe('CORE_ACCESS', (msg, data) => {
this.messages = this.messages.concat(data)
})
PubSub.subscribe('RESET_CORE', (msg, data) => {
this.messages = []
this.init()
})
PubSub.subscribe('NEXT_EXECUTION', (msg, data) => {
this.nextExecutionAddress = data.address
})
componentWillUnmount () {
// Unsubscribe from event once unmounting
PubSub.unsubscribe(this.subEvent)
this._isMounted = false
}
componentWillUnmount() {
PubSub.unsubscribe(this.tabShowToken);
PubSub.unsubscribe(this.tabHideToken);
}
componentWillUnmount() {
PubSub.unsubscribe('TASK_COUNT')
PubSub.unsubscribe('CORE_INITIALISE')
}
this.pubsubTokens.forEach((token) => {
pubsub.unsubscribe(token);
});
this.pubsubTokens = [];
disconnect: function(token) {
PubSub.unsubscribe(token);
},
_.each(this.pubsubTokens, (token) => {
pubsub.unsubscribe(token);
});
this.pubsubTokens = [];
componentWillUnmount () {
this._isMounted = false
PubSub.unsubscribe(this.subEvent)
}
componentWillUnmount() {
PubSub.unsubscribe(this.clearSearchPubSub);
}