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

docs: update obvious text error of zh-CN.md #555

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion pages/index.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function Profile() {

该示例中,`useSWR` hook 接受一个字符串 `key` 和一个函数 `fetcher`。`key` 是数据的唯一标识符(通常是 API URL),并传递给 `fetcher`。`fetcher` 可以是任何返回数据的异步函数,你可以使用原生的 fetch 或 Axios 之类的工具。

基于请求的状态,这个 hook 返回 2 个值:`data` 和 `error`。
基于请求的状态,这个 hook 返回 3 个值:`data`、`isLoading` 和 `error`。

## 特性 [#features]

Expand Down