← All recipes
Moderne licensed

Find ChangeDetectorRef.checkNoChanges usage

Recipe IDorg.openrewrite.angular.search.find-check-no-changes-usageArtifact@openrewrite/recipes-angular

Finds calls to checkNoChanges(), which was removed from ChangeDetectorRef in Angular 22. In tests, use fixture.detectChanges() instead.

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-check-no-changes-usage

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-angular