Skip to content

Commit

Permalink
docs(query): Fix docs for RxJS Operators (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnyangkoho authored Jun 5, 2024
1 parent fb04849 commit 60684b2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,27 +394,27 @@ export class TodosPageComponent {

### filterSuccessResult

The `filterSuccess` operator is useful when you want to filter only successful results:
The `filterSuccessResult` operator is useful when you want to filter only successful results:

`todosService.getTodos().result$.pipe(filterSuccess())`
`todosService.getTodos().result$.pipe(filterSuccessResult())`

### filterErrorResult

The `filterError` operator is useful when you want to filter only error results:
The `filterErrorResult` operator is useful when you want to filter only error results:

`todosService.getTodos().result$.pipe(filterError())`
`todosService.getTodos().result$.pipe(filterErrorResult())`

### tapSuccessResult

The `tapSuccess` operator is useful when you want to run a side effect only when the result is successful:
The `tapSuccessResult` operator is useful when you want to run a side effect only when the result is successful:

`todosService.getTodos().result$.pipe(tapSuccess(console.log))`
`todosService.getTodos().result$.pipe(tapSuccessResult(console.log))`

### tapErrorResult

The `tapErrorResult` operator is useful when you want to run a side effect only when the result is successful:
The `tapErrorResult` operator is useful when you want to run a side effect only when the result is erroring:

`todosService.getTodos().result$.pipe(tapError(console.log))`
`todosService.getTodos().result$.pipe(tapErrorResult(console.log))`

### mapResultData

Expand Down

0 comments on commit 60684b2

Please sign in to comment.