Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentWillUnmount() {
const { subscription } = this;
if (subscription != null) {
themeListener.unsubscribe(this.context, subscription);
}
}
render() {
componentWillUnmount() {
availableDynamicTagNames.push(this.dynamicTagName)
if (this.subscriptionId) {
themeListener.unsubscribe(this.context, this.subscriptionId)
}
}