Skip to content

Commit

Permalink
fix(docs): correct typo in retryOnError field (#534)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergei Zheleshchenko <szheleshchenko@ronasit.com>
  • Loading branch information
szheleshchenko and Sergei Zheleshchenko authored Feb 11, 2025
1 parent 6cc65f9 commit be75cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/content/docs/utilities/Stores/create-effect.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ export class Example {
// Will not resubscribe on error
private loadProducts = createEffect<string>(
(_) => _.pipe(switchMap((id) => this.api.loadProducts(id))),
{ retryOnEror: false },
{ retryOnError: false },
);

// Will resubscribe on error with a delay, not more than 3 times
private loadProducts = createEffect<string>(
(_) => _.pipe(switchMap((id) => this.api.loadProducts(id))),
{ retryOnEror: { count: 3, delay: 500 } },
{ retryOnError: { count: 3, delay: 500 } },
);
}
```

0 comments on commit be75cde

Please # to comment.