-
Notifications
You must be signed in to change notification settings - Fork 25.7k
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(core): Ensure that a destroyed effect
never runs
#59415
Conversation
effect
never run.effect
never runs
Prior to this change, a scheduled root effect, even if destroyed instantly, would still run at least once. This commit fixes this. fixes angular#59410
56de843
to
9fb5898
Compare
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.
Reviewed-for: size-tracking
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
Caretaker note: this is safe to merge. Failing tests are flakes. |
This PR was merged into the repository by commit 5c0d688. The changes were merged into the following branches: main, 19.0.x |
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.
A ok number one looks like a 🏆🥇 winner
Prior to this change, a scheduled root effect, even if destroyed instantly, would still run at least once.
This commit fixes this.
fixes #59410