-
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
Observe on leak #2248
Observe on leak #2248
Conversation
…lf when unsubscribed There was a problem where subscriptions added to parent subscriptions would not remove themselves when unsubscribed, This meant that when Actions (which are subscriptions) were unsubscribed, they would still hang out in the _subscriptions list and live in memory when we didn't want them to related #2244
@@ -54,15 +54,13 @@ export class VirtualAction<T> extends AsyncAction<T> { | |||
} | |||
|
|||
public schedule(state?: T, delay: number = 0): Subscription { | |||
return !this.id ? | |||
super.schedule(state, delay) : ( | |||
// If an action is rescheduled, we save allocations by mutating its state, |
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.
@Blesh can we keep this comment?
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 |
Is there an estimate on when the next patch version will be available? |
@kudoz very soon. This week or early next week. |
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. |
Subscription.prototype.add
remove themselves from the internal subscriptions list.fixes #2244