Skip to content

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

@mtycholaz

Description

@mtycholaz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions