could team suggest 3rd party hook library for timers right in the official docs?
未關閉
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 11.8k
- 分支
- 7.9k
- 平均合併
- 1 天 11 小時
- 30 天內合併 PR
- 11
描述
What?
Proposal is to recommend(include reference into official docs) some 3rd party hook library that provides wrapper around setTimeout, setInterval or both.
Why?
Because without out-of-the-box solution people reinvent the wheel again and again.
Value
I'd say it would mean better consistency across the projects.
To my mind, it's really challenging to make a hook that a) would be generic/flexible enough; b) still keep code readable; c) would not introduce much boilerplace. So I guess it may be a reason why there are no official useTimeout hook.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先檢視官方文件中涵蓋 Hooks 以及 setTimeout、setInterval 等計時器 API 的章節。評估適合的第三方函式庫,然後提出一項附有參考資料的建議,並說明其適用範圍與取捨;此 issue 未指出目標檔案、測試或特定函式庫。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, react
- 領域
- documentation
- Issue 類型
- 文件
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100