Search⌘ K
AI Features

When to use and not to use NgRx

Explore scenarios to determine if NgRx is the right choice for your Angular application by understanding factors like application size, data complexity, component communication, performance needs, and testing. Learn how NgRx can help streamline state management or when it might be unnecessary.

Introduction

NgRx is a great tool for state management, but it’s not always the right choice for every application. We need to think carefully before using NgRx in an Angular app. There are several scenarios we need to take into account before implementing NgRx in an Angular app.

Application size

The size of our application can be a determining factor in whether NgRx is suitable for us. If our app is small and simple, NgRx might be overkill.

However, if our app is large and complex, NgRx can ...