Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Handlingページの表記ゆれを修正した #83

Merged
merged 1 commit into from
May 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pages/docs/error-handling.ja.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const { data, error } = useSWR('/api/user', fetcher)

## エラー時の再試行

SWR は [exponential backoff アルゴリズム](https://en.wikipedia.org/wiki/Exponential_backoff)を使用して、エラー時にリクエストを再試行します。
SWR は [exponential backoff アルゴリズム](https://en.wikipedia.org/wiki/Exponential_backoff) を使用して、エラー時にリクエストを再試行します。
このアルゴリズムにより、アプリはエラーから素早く回復することができますが、再試行しすぎてリソースを無駄にすることはありません。

また [onErrorRetry](/docs/options#options) オプションで、この動作をオーバーライドすることもできます:
Expand All @@ -82,7 +82,7 @@ useSWR('/api/user', fetcher, {

このコールバックは、様々な条件にもとづいて再試行する柔軟性を提供します。 `shouldRetryOnError: false` を設定することで、この機能を無効にすることもできます。

また、 [グローバルな設定](/docs/global-configuration)のコンテキストを介して提供することもできます。
また、 [グローバルな設定](/docs/global-configuration) のコンテキストを介して提供することもできます。

## グローバルエラーの報告

Expand Down