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>
* 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
Suggestion: Link to /reference/react/hooks rather than /reference/react. The preceding sentence refers to “If you are looking for Hooks that are supported in web browsers *and other environments* see [the React Hooks page](/reference/react/hooks). This page lists all the Hooks in the `react-dom` package.” which matches the React Hooks page better.
* Fix Server Components link text to match target section heading
Change "React Server Components" to "Full-stack frameworks" in the
server-components.md link text to accurately reflect the destination
section heading
* Remove unnecessary RSC tags from Server Components documentation
* Use stable release in demos with HTML output
* Fix Activity sandboxes (#8035)
* Fix Activity sandboxes
* hacky fix
* Revert "Fix Activity sandboxes (#8035)"
This reverts commit f9fd07ca59.
* Bump to 19.2
* cleanup rest of sandpacks
* Pin deps
* Add back package.json with third-party deps
* "^" should be fixed now
* add back package.json for more toastify deps
* fuggin whitespace
* more fuggin whitespace
* fml like fr fr
---------
Co-authored-by: Sebastian Sebbie Silbermann <sebastian.silbermann@vercel.com>
Co-authored-by: Ricky <rickhanlonii@gmail.com>
Co-authored-by: Rick Hanlon <rickhanlonii@meta.com>