Skip to content

Commit

Permalink
docs(example): revert incorrect replacement of exhaustMap with mergeM…
Browse files Browse the repository at this point in the history
…ap (ngrx#3770)

Closes ngrx#3770
  • Loading branch information
JeromeWirth committed Feb 18, 2023
1 parent 8a01375 commit 26261be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngrx.io/content/guide/effects/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ The `loadMovies$` effect is listening for all dispatched actions through the `Ac

## Handling Errors

Effects are built on top of observable streams provided by RxJS. Effects are listeners of observable streams that continue until an error or completion occurs. In order for effects to continue running in the event of an error in the observable, or completion of the observable stream, they must be nested within a "flattening" operator, such as `exhaustMap`, `concatMap`, `exhaustMap` and other flattening operators. The example below shows the `loadMovies$` effect handling errors when fetching movies.
Effects are built on top of observable streams provided by RxJS. Effects are listeners of observable streams that continue until an error or completion occurs. In order for effects to continue running in the event of an error in the observable, or completion of the observable stream, they must be nested within a "flattening" operator, such as `mergeMap`, `concatMap`, `exhaustMap` and other flattening operators. The example below shows the `loadMovies$` effect handling errors when fetching movies.

<code-example header="movie.effects.ts">
import { Injectable } from '@angular/core';
Expand Down

0 comments on commit 26261be

Please sign in to comment.