You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should there be a guard in place where calling this.unsubscribe() when there are no active listeners on the object? Calling it twice generates an error and it would be nice if the module remembered the state and didn't call it if it wasn't necessary.
Having this guard in place would eliminate a lot of code in my project that's checking this.
The text was updated successfully, but these errors were encountered:
Should there be a guard in place where calling
this.unsubscribe()
when there are no active listeners on the object? Calling it twice generates an error and it would be nice if the module remembered the state and didn't call it if it wasn't necessary.Having this guard in place would eliminate a lot of code in my project that's checking this.
The text was updated successfully, but these errors were encountered: