Skip to content

Commit 594e3fe

Browse files
childrentimeclaude
andcommitted
fix: correct broken hook documentation links in blog posts
Fix wrong URL paths and remove references to non-existent hooks across all blog locales (en, zh-Hans, zh-Hant) and docusaurus. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 92f3cc3 commit 594e3fe

26 files changed

Lines changed: 50 additions & 65 deletions

packages/website-astro/src/content/blog-zh-hans/2026-03-11-react-copy-to-clipboard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ import { useClipboard } from "@reactuses/core";
179179
- [useClipboard 文档](https://reactuse.com/browser/useClipboard/) — 完整 API 参考和在线演示
180180
- [usePermission](https://reactuse.com/browser/usePermission/) — 检查剪贴板读取权限是否已被授予
181181
- [useEventListener](https://reactuse.com/effect/useEventListener/) — useClipboard 内部使用的底层 Hook
182-
- [useSupported](https://reactuse.com/browser/useSupported/) — 检测当前环境中 Clipboard API 是否可用
182+
- [useSupported](https://reactuse.com/state/useSupported/) — 检测当前环境中 Clipboard API 是否可用
183183

184184
---
185185

packages/website-astro/src/content/blog-zh-hans/2026-03-11-react-debounce-vs-throttle.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ npm i @reactuses/core
136136

137137
## 相关 Hooks
138138

139-
- [useDebounce 文档](https://reactuse.com/hooks/useDebounce/) -- 对响应式值进行防抖
140-
- [useDebounceFn 文档](https://reactuse.com/hooks/useDebounceFn/) -- 对函数进行防抖
141-
- [useThrottle 文档](https://reactuse.com/hooks/useThrottle/) -- 对响应式值进行节流
142-
- [useThrottleFn 文档](https://reactuse.com/hooks/useThrottleFn/) -- 对函数进行节流
139+
- [useDebounce 文档](https://reactuse.com/state/useDebounce/) -- 对响应式值进行防抖
140+
- [useDebounceFn 文档](https://reactuse.com/effect/useDebounceFn/) -- 对函数进行防抖
141+
- [useThrottle 文档](https://reactuse.com/state/useThrottle/) -- 对响应式值进行节流
142+
- [useThrottleFn 文档](https://reactuse.com/effect/useThrottleFn/) -- 对函数进行节流
143143

144144
---
145145

packages/website-astro/src/content/blog-zh-hans/2026-03-11-react-infinite-scroll.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,8 @@ npm i @reactuses/core
197197

198198
## 相关 Hooks
199199

200-
- [useInfiniteScroll 文档](https://reactuse.com/element/useInfiniteScroll/) -- 交互式演示和完整 API 参考
201-
- [useScroll](https://reactuse.com/element/useScroll/) -- 响应式滚动位置和方向追踪
202-
- [useVirtualList](https://reactuse.com/element/useVirtualList/) -- 虚拟化长列表,配合无限滚动获得更好的性能
200+
- [useInfiniteScroll 文档](https://reactuse.com/browser/useInfiniteScroll/) -- 交互式演示和完整 API 参考
201+
- [useScroll](https://reactuse.com/browser/useScroll/) -- 响应式滚动位置和方向追踪
203202

204203
---
205204

packages/website-astro/src/content/blog-zh-hans/2026-03-11-react-localstorage-hook.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ import { useLocalStorage } from "@reactuses/core";
157157

158158
- [useLocalStorage 文档](https://reactuse.com/state/useLocalStorage/) -- 完整 API 参考和在线演示
159159
- [useSessionStorage](https://reactuse.com/state/useSessionStorage/) -- 相同的 API,但数据在标签页关闭时清除
160-
- [useStorage](https://reactuse.com/state/useStorage/) -- 一个通用 Hook,适用于任何兼容 Storage 的后端
161160

162161
---
163162

packages/website-astro/src/content/blog-zh-hans/2026-03-11-react-window-size-hook.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,9 @@ yarn add @reactuses/core
148148

149149
## 相关 Hooks
150150

151-
- [useWindowSize 文档](https://reactuse.com/browser/useWindowSize/) — 完整 API 参考和交互式演示
151+
- [useWindowSize 文档](https://reactuse.com/element/useWindowSize/) — 完整 API 参考和交互式演示
152152
- [useMediaQuery](https://reactuse.com/browser/useMediaQuery/) — 响应式 CSS 媒体查询匹配
153153
- [useElementSize](https://reactuse.com/element/useElementSize/) — 追踪特定 DOM 元素的尺寸
154-
- [useBreakpoints](https://reactuse.com/browser/useBreakpoints/) — 命名断点辅助工具(sm、md、lg、xl)
155154

156155
---
157156

packages/website-astro/src/content/blog-zh-hans/2026-03-17-react-hooks-performance.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,11 @@ npm i @reactuses/core
289289

290290
## 相关 Hooks
291291

292-
- [useDebounce 文档](https://reactuse.com/hooks/useDebounce/) -- 对响应式值进行防抖
293-
- [useDebounceFn 文档](https://reactuse.com/hooks/useDebounceFn/) -- 对函数进行防抖
294-
- [useThrottle 文档](https://reactuse.com/hooks/useThrottle/) -- 对响应式值进行节流
295-
- [useThrottleFn 文档](https://reactuse.com/hooks/useThrottleFn/) -- 对函数进行节流
296-
- [useLatest 文档](https://reactuse.com/hooks/useLatest/) -- 保持对最新值的引用
292+
- [useDebounce 文档](https://reactuse.com/state/useDebounce/) -- 对响应式值进行防抖
293+
- [useDebounceFn 文档](https://reactuse.com/effect/useDebounceFn/) -- 对函数进行防抖
294+
- [useThrottle 文档](https://reactuse.com/state/useThrottle/) -- 对响应式值进行节流
295+
- [useThrottleFn 文档](https://reactuse.com/effect/useThrottleFn/) -- 对函数进行节流
296+
- [useLatest 文档](https://reactuse.com/state/useLatest/) -- 保持对最新值的引用
297297

298298
---
299299

packages/website-astro/src/content/blog-zh-hans/2026-03-17-react-media-query-hook.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,7 @@ yarn add @reactuses/core
249249
## 相关 Hooks
250250

251251
- [useMediaQuery 文档](https://reactuse.com/browser/useMediaQuery/) -- 完整 API 参考和交互式演示
252-
- [useWindowSize](https://reactuse.com/browser/useWindowSize/) -- 获取视口的实际像素尺寸
253-
- [useBreakpoints](https://reactuse.com/browser/useBreakpoints/) -- 命名断点辅助工具(sm、md、lg、xl)
252+
- [useWindowSize](https://reactuse.com/element/useWindowSize/) -- 获取视口的实际像素尺寸
254253
- [useDarkMode](https://reactuse.com/browser/useDarkMode/) -- 完整的深色模式管理与持久化
255254

256255
---

packages/website-astro/src/content/blog-zh-hant/2026-03-11-react-copy-to-clipboard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ import { useClipboard } from "@reactuses/core";
179179
- [useClipboard 文件](https://reactuse.com/browser/useClipboard/) — 完整 API 參考和即時範例
180180
- [usePermission](https://reactuse.com/browser/usePermission/) — 檢查剪貼簿讀取權限是否已授予
181181
- [useEventListener](https://reactuse.com/effect/useEventListener/) — useClipboard 內部使用的底層 hook
182-
- [useSupported](https://reactuse.com/browser/useSupported/) — 偵測 Clipboard API 在目前環境中是否可用
182+
- [useSupported](https://reactuse.com/state/useSupported/) — 偵測 Clipboard API 在目前環境中是否可用
183183

184184
---
185185

packages/website-astro/src/content/blog-zh-hant/2026-03-11-react-debounce-vs-throttle.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ npm i @reactuses/core
136136

137137
## 相關 Hooks
138138

139-
- [useDebounce 文件](https://reactuse.com/hooks/useDebounce/) -- 防抖一個響應式值
140-
- [useDebounceFn 文件](https://reactuse.com/hooks/useDebounceFn/) -- 防抖一個函式
141-
- [useThrottle 文件](https://reactuse.com/hooks/useThrottle/) -- 節流一個響應式值
142-
- [useThrottleFn 文件](https://reactuse.com/hooks/useThrottleFn/) -- 節流一個函式
139+
- [useDebounce 文件](https://reactuse.com/state/useDebounce/) -- 防抖一個響應式值
140+
- [useDebounceFn 文件](https://reactuse.com/effect/useDebounceFn/) -- 防抖一個函式
141+
- [useThrottle 文件](https://reactuse.com/state/useThrottle/) -- 節流一個響應式值
142+
- [useThrottleFn 文件](https://reactuse.com/effect/useThrottleFn/) -- 節流一個函式
143143

144144
---
145145

packages/website-astro/src/content/blog-zh-hant/2026-03-11-react-infinite-scroll.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,8 @@ npm i @reactuses/core
197197

198198
## 相關 Hooks
199199

200-
- [useInfiniteScroll 文件](https://reactuse.com/element/useInfiniteScroll/) -- 互動式範例和完整 API 參考
201-
- [useScroll](https://reactuse.com/element/useScroll/) -- 響應式捲動位置和方向追蹤
202-
- [useVirtualList](https://reactuse.com/element/useVirtualList/) -- 虛擬化長列表,搭配無限捲動使用以獲得更好的效能
200+
- [useInfiniteScroll 文件](https://reactuse.com/browser/useInfiniteScroll/) -- 互動式範例和完整 API 參考
201+
- [useScroll](https://reactuse.com/browser/useScroll/) -- 響應式捲動位置和方向追蹤
203202

204203
---
205204

0 commit comments

Comments
 (0)