From 013e962ee4076ccce2ae80346945d9129cfa9361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E9=95=87?= Date: Thu, 23 Nov 2023 16:35:16 +0800 Subject: [PATCH] docs: correct subtitle in useFetcher --- docs/tutorial/03-learning/05-use-fetcher.md | 2 +- .../current/tutorial/03-learning/05-use-fetcher.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/03-learning/05-use-fetcher.md b/docs/tutorial/03-learning/05-use-fetcher.md index 07ff6db43..843e6de1e 100644 --- a/docs/tutorial/03-learning/05-use-fetcher.md +++ b/docs/tutorial/03-learning/05-use-fetcher.md @@ -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`; diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorial/03-learning/05-use-fetcher.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorial/03-learning/05-use-fetcher.md index f57d36003..ad673228f 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorial/03-learning/05-use-fetcher.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorial/03-learning/05-use-fetcher.md @@ -484,7 +484,7 @@ const { fetch } = useFetcher({ fetch(getTodoList(10), true); ``` -## 与 useRequest 和 useWatcher 的差异对比 +## 与 useRequest 和 useFetcher 的差异对比 1. useFetcher 不返回`data`字段,预拉取的数据将保存在缓存中,以及更新对应位置的状态数据; 2. 将`loading`改名为了`fetching`;