You should take advantage of the improved NgRx APIs
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
NgRx has evolved significantly over the years, leveraging TypeScript's improved type system to offer safer and more concise APIs. This post walks through the modern NgRx patterns across actions, reducers, selectors, effects, and component store. Key updates include: replacing class-based actions with `createAction` and `createActionGroup` (v14+), using `createReducer` with `on` handlers instead of switch statements, adopting `createFeature` for auto-generated selectors, replacing the deprecated `@Effect` decorator with `createEffect`, and using `provideStore`/`provideState`/`provideEffects` for standalone component registration (v15). The NgRx ESLint plugin and `ng-update` migrations can help automate many of these refactors.