Skip to content
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

[Bug] ExpressionChangedAfterItHasBeenCheckedError happens when provideExperimentalZonelessChangeDetection() is enabled #1030

Open
mtycholaz opened this issue Feb 11, 2025 · 0 comments

Comments

@mtycholaz
Copy link

Steps to reproduce

  1. Create an Angular 19 project.
  2. In the app.config provide toastr and provideExperimentalZonelessChangeDetection
  3. Create a new toastr notification

Very easy to reproduce. Appears to happen because of the setTimeout in the onActivated function of the ToastRef. Angular wraps setTimeout to make it work with zone.js but with that gone, the setTimeout will now need to be updated so that it runs within the context of Angular.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant