Skip to content

Commit 59e5c5f

Browse files
authored
translate some tip
1 parent 8e76839 commit 59e5c5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/eslint-plugin-react-hooks/lints/rules-of-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ useEffect(() => {
132132

133133
<Note>
134134

135-
There are better ways to fetch data rather than in a useEffect. Consider using TanStack Query, useSWR, or React Router 6.4+ for data fetching. These solutions handle deduplicating requests, caching responses, and avoiding network waterfalls.
135+
有比使用 useEffect 更好的方法来获取数据。考虑使用 TanStack QueryuseSWR 或者 React Router(v6.4 版本及以上)来获取数据。这些解决方案处理了重复请求、对响应进行缓存并且会避免网络瀑布。
136136

137137
Learn more: [Fetching Data](/learn/synchronizing-with-effects#fetching-data)
138138

0 commit comments

Comments
 (0)