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: correct subtitle in useFetcher #43

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
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 docs/tutorial/03-learning/05-use-fetcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ const { fetch } = useFetcher({
fetch(getTodoList(10), true);
```

## Compare with useRequest and useWatcher
## Compare with useRequest and useFetcher

1. useFetcher does not return the `data` field, the pre-fetched data will be saved in the cache, and the status data of the corresponding location will be updated;
2. Rename `loading` to `fetching`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ const { fetch } = useFetcher({
fetch(getTodoList(10), true);
```

## 与 useRequest 和 useWatcher 的差异对比
## 与 useRequest 和 useFetcher 的差异对比

1. useFetcher 不返回`data`字段,预拉取的数据将保存在缓存中,以及更新对应位置的状态数据;
2. 将`loading`改名为了`fetching`;
Expand Down