Angular · Senior · Question 38 of 75
What is an NgRx effect?
- ✓Correct answer: A stream that listens to actions, performs side effects (like HTTP) and usually dispatches new actions
- 2An Angular
effect()that reads the store - 3A reducer that can be async
Explanation
Effects keep reducers pure. A typical one: loadUsers → switchMap to the API → loadUsersSuccess or loadUsersFailure, choosing the flattening operator deliberately.