[Bug]: Excessive Requests for Page Data - Why Does This Happen?
未關閉
還沒有人認領這個 Issue。
bug: unconfirmed
- 主要語言
- JavaScript
- 星號
- 11.8k
- 分支
- 7.9k
- 平均合併
- 1 天 11 小時
- 30 天內合併 PR
- 11
描述
Summary
When I hover over a menu element, it triggers a request to fetch the page data. However, each subsequent hover initiates the request again. I believe this is unnecessary. There should be a system in place to check if the client already has the data, right? I'm not sure if this issue pertains to React or the page setup.
https://github.com/reactjs/react.dev/assets/42542864/53e85173-57c7-4d26-849b-fdab39712d15
Page
Details
No response
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先在 https://react.dev 上將滑鼠懸停在選單元素上,重現重複的 page-data 請求,並使用瀏覽器的網路面板比較連續的懸停操作。追蹤網站程式碼中的請求進入點,確認是否正在重複使用現有的用戶端資料;完成標準是重複懸停不再發出不必要的請求,同時不影響頁面導覽。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, react
- 領域
- frontend, web-dev
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100