From 60684b2c499c2a07cf6057748b82a9bf4d0a261e Mon Sep 17 00:00:00 2001 From: Shawn Yang <162749594+shawnyangkoho@users.noreply.github.com> Date: Wed, 5 Jun 2024 10:29:36 -0400 Subject: [PATCH] docs(query): Fix docs for RxJS Operators (#182) --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8a9a1f4..7e167b8 100644 --- a/README.md +++ b/README.md @@ -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