reactjs / reactjs/react.dev

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

Open Beginner friendly
#8,430 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: typos
Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked section in the React documentation and inspect the sandbox for the chat example, especially how serverUrl is defined and changed. Compare the instruction with the observed behavior, then revise the two sentences so they accurately describe when the Effect re-synchronizes; the linked page should no longer make a claim the sandbox cannot demonstrate.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.