Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
removeChannel() {
if (this.channelId) {
manager.stopStream(this.channelId);
this.channelId = null;
}
if (this.channelListener) {
this.channelListener.remove();
}
if (this.loadListener) {
this.loadListener.remove();
}
}
removeChannel() {
if (this.channelId) {
manager.stopStream(this.channelId);
}
if (this.channelListener) {
this.channelListener.remove();
}
if (this.loadListener) {
this.loadListener.remove();
}
if (this.filterListener) {
this.filterListener.remove();
}
}
componentWillUnmount() {
if (this.channelId) {
manager.stopStream(this.channelId);
}
if (this.channelListener) {
this.channelListener.remove();
}
if (this.filterListener) {
this.filterListener.remove();
}
}
removeChannel() {
if (this.channelId) {
manager.stopStream(this.channelId);
this.channelId = null;
}
if (this.channelListener) {
this.channelListener.remove();
}
if (this.loadListener) {
this.loadListener.remove();
}
}
componentWillUnmount() {
if (this.channelId) {
manager.stopStream(this.channelId);
}
if (this.channelListener) {
this.channelListener.remove();
}
if (this.loadListenerParent) {
this.loadListenerParent.remove();
}
if (this.loadListenerChild) {
this.loadListenerChild.remove();
}
if (this.filterListener) {
this.filterListener.remove();
}
}
componentWillUnmount() {
if (this.channelId) {
manager.stopStream(this.channelId);
}
if (this.channelListener) {
this.channelListener.remove();
}
if (this.loadListener) {
this.loadListener.remove();
}
}