Skip to content

Conversation

@react-translations-bot
Copy link
Collaborator

This PR was automatically generated.

Merge changes from react.dev at d271a7a

The following files have conflicts and may need new translations:

Please fix the conflicts by pushing new commits to this pull request, either by editing the files directly on GitHub or by checking out this branch.

DO NOT SQUASH MERGE THIS PULL REQUEST!

Doing so will "erase" the commits from main and cause them to show up as conflicts the next time we merge.

martinrebo and others added 7 commits November 5, 2025 18:39
* fix: correct link for RedwoodJS to RedwoodSDK in documentation

* fix: update links for React Query and TanStack Start in documentation

* fix: update Vite installation command to use TypeScript template

* fix: update references from React Query to TanStack Query in documentation
Fixes #8097

The refactored example in the "Chains of computations" section uses
an incorrect condition that changes the game logic from the original.

The original Effect-based code advances the round after 4 gold cards:
- Increments first (0→1, 1→2, 2→3, 3→4)
- Then checks `goldCardCount > 3` (true when count is 4)

The refactored code with `goldCardCount <= 3` allows 5 gold cards:
- Checks before incrementing
- Allows counts 0, 1, 2, 3 to increment (4 values)
- Advances on the 5th card (when count is 4)

This fix changes the condition to `goldCardCount < 3`:
- Allows counts 0, 1, 2 to increment (3 values)
- Advances on the 4th card (when count is 3)
- Matches the original behavior

Verified by tracing execution logic and building the docs site locally.

Co-authored-by: PaulyBearCoding <PaulyBearCoding@users.noreply.github.com>
@vercel
Copy link

vercel bot commented Nov 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ko-react-dev Building Building Preview Comment Nov 10, 2025 2:33am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
ko-legacy-reactjs-org Ignored Ignored Preview Nov 10, 2025 2:33am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants