-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(onErrorResumeNext): no longer holds onto subscriptions too long #3289
Conversation
Generated by 🚫 dangerJS |
|
||
protected _error(err: any): void { | ||
this.subscribeToNextSource(); | ||
if (sources.length === 1 && isArray(first)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any perf win/loss if we avoid the above variable allocations by moving this before the destructure assigment, and use isArray(sources[0])
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would probably be a slight perf loss, as you'd need to look up first
by index twice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one small nit, which is probably not important.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Reduces the size of onErrorResumeNext.
Fixes an issue where
onErrorResumeNext
was holding onto all inner subscriptions for the lifetime of the resulting observable.Updates documentation
related #2459
closes #3178