in src/components/viewer.js [89:96]
componentWillUnmount() {
if (this.getInstancesPromise) {
this.getInstancesPromise.cancel();
}
this.dicomSequencer.cancel();
clearInterval(this.metricsIntervalId);
cornerstone.disable(this.canvasElement);
}