[Typo]: editing `serverUrl` in the sandbox as directed does not cause the Effect to re-synchronize
未關閉
適合新手
還沒有人認領這個 Issue。
type: typos
- 主要語言
- JavaScript
- 星號
- 11.8k
- 分支
- 7.9k
- 平均合併
- 1 天 11 小時
- 30 天內合併 PR
- 11
描述
Summary
These two sentences at https://react.dev/learn/lifecycle-of-reactive-effects#how-react-verifies-that-your-effect-can-re-synchronize don't make sense for the given example.
For example, try editing the
serverUrlin the sandbox above while the chat is open. Notice how the Effect re-synchronizes in response to your edits to the code.
Page
Details
In that sandbox example, serverUrl is not a reactive value.
Editing its value in the sandbox does not cause the Effect to re-synchronize.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 React 文件中連結的區段開始,檢查 chat 範例的 sandbox,特別是 serverUrl 的定義與變更方式。將指示與觀察到的行為進行比較,然後修改這兩個句子,使其準確描述 Effect 何時重新同步;連結頁面不應再聲稱 sandbox 無法示範的內容。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, react
- 領域
- documentation
- Issue 類型
- 文件
- 難度
- 1/5
- 預估耗時
- 1-3 小時
- 活躍度
- 冷清
- 描述清晰度
- 描述清楚
- 新手友好度
- 68/100