Find effect() usage affected by Angular 19 timing changes
Recipe ID
org.openrewrite.angular.search.find-effect-timing-usageArtifact@openrewrite/recipes-angularFinds effect() calls from @angular/core. In Angular 19, effects triggered outside change detection now run as part of the change detection process instead of as a microtask, and effects triggered during change detection run earlier, before the component's template.
Single recipeProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.angular.search.find-effect-timing-usageIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angular