Replace @Effect() with createEffect

Proprietary

NgRx 13 deprecated the @Effect() decorator, which NgRx 15 removed. Rewrites @Effect() effect$ = actions$.pipe(...) to effect$ = createEffect(() => actions$.pipe(...)) and keeps the options, as in @Effect({dispatch: false}).

org.openrewrite.angular.ngrx.MigrateEffectDecorators
mod run . --recipe=org.openrewrite.angular.ngrx.MigrateEffectDecorators

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.