Skip to content

Commit 8f60543

Browse files
MikeRyanDevbrandonroberts
authored andcommitted
Update books-api.effects.ts
Switching to `concatMap` for creating a book
1 parent 3266250 commit 8f60543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/books/books-api.effects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class BooksApiEffects {
2727
@Effect()
2828
createBook$ = this.actions$.pipe(
2929
ofType(BooksPageActions.BooksActionTypes.CreateBook),
30-
mergeMap(action =>
30+
concatMap(action =>
3131
this.booksService.create(action.book).pipe(
3232
map(book => new BooksApiActions.BookCreated(book)),
3333
catchError(() => EMPTY)

0 commit comments

Comments
 (0)