Disable the protected state of signal stores
ProprietaryNgRx 18 protects the state of signal stores by default, so patchState fails outside of the store. Adds protectedState: false to the config of every signalStore in projects that declare @ngrx/signals before 18, to keep the state writable from outside, as ng update @ngrx/signals@18 does. Remove it from the stores that should be protected.
org. openrewrite. angular. ngrx. DisableSignalStoreProtectedStatemod run . --recipe= org. openrewrite. angular. ngrx. DisableSignalStoreProtectedStateInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.