[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.

Assessment

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

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.

Description

type: typos
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.

Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
16h 6m
Merged PRs (30d)
7

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.

More from reactjs/react.dev

All issues in reactjs/react.dev

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.