reactjs / reactjs/react.dev

[Typo]: editing `serverUrl` in the sandbox as directed does not cause the Effect to re-synchronize

オープン 初心者向け
#8,430 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

type: typos
主要言語
JavaScript
スター
11.8k
フォーク
7.9k
平均マージ
1日 11時間
マージ済み PR(30日)
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 serverUrl in the sandbox above while the chat is open. Notice how the Effect re-synchronizes in response to your edits to the code.

Page

https://react.dev/learn/lifecycle-of-reactive-effects#how-react-verifies-that-your-effect-can-re-synchronize

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

React ドキュメントのリンク先のセクションから始め、chat の例の sandbox を調べます。特に、serverUrl がどのように定義され、変更されるかを確認してください。指示と観察された動作を比較し、その後、Effect がいつ再同期するのかを正確に説明するように 2 つの文を修正してください。リンク先のページでは、sandbox で実証できない主張をしないようにしてください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, react
領域
documentation
issue の種類
ドキュメント
難易度
1/5
見積もり時間
1〜3時間
活発さ
静か
明瞭さ
明確に書かれている
初心者へのやさしさ
68/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。