Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentWillUnmount() { // eslint-disable-line class-methods-use-this
tocbot.destroy();
document.removeEventListener('scroll', this.throttledScrollListener, { passive: true });
document.removeEventListener('resize', this.throttledScrollListener, { passive: true });
}
componentWillUnmount() { // eslint-disable-line class-methods-use-this
tocbot.destroy();
document.removeEventListener('scroll', this.throttledScrollListener, { passive: true });
document.removeEventListener('resize', this.throttledScrollListener, { passive: true });
}
componentWillUnmount() {
tocbot.destroy();
}
componentWillUnmount() {
tocbot.destroy();
}