Skip to content

Align browser() API references with stable React 19.3 - #250

Merged
uhyo merged 3 commits into
masterfrom
claude/react-browser-api-docs-9gsr1g
Sep 10, 2026
Merged

Align browser() API references with stable React 19.3#250
uhyo merged 3 commits into
masterfrom
claude/react-browser-api-docs-9gsr1g

Conversation

@uhyo

@uhyo uhyo commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Summary

React's browser() API, used by the pathlessSSROutletDeferral feature, was previously documented as React Canary–only. It shipped stable in React 19.3, so this PR aligns docs, code comments, and the example app accordingly.

  • Router package: the pathlessSSROutletDeferral runtime error message and doc comments (browserBailout.ts, Router/index.tsx, bailout tests) now say "React 19.3 or later" instead of "currently React Canary".
  • Docs site: the SSR guide and the RouterFeatures entry in the components API reference now describe browser() as stable since React 19.3.
  • Pathless SSR example: react/react-dom moved from the pinned 19.3.0-canary-eb8feb71-20260814 build to stable ^19.3.0; the lockfile is regenerated and free of canary entries.

Not touched: the addTransitionType Canary warnings (separate API, stability not confirmed), and the router's own devDependency on react-dom 19.2 — browserBailout.unsupported.test.tsx intentionally relies on a real react-dom without the API to test the error path (its comment is updated to say so).

Test plan

  • pnpm test:run — all 350 router tests pass
  • pnpm typecheck, pnpm lint, pnpm format:check — clean
  • Built example-pathless-ssr against stable React 19.3: the pre-rendered HTML contains the Suspense fallback in place of the outlet, confirming stable react-dom 19.3 exports browser() and the deferral works

🤖 Generated with Claude Code

https://claude.ai/code/session_014oASXrp3rxNu6veBebZrwp


Generated by Claude Code

The browser() API used by pathlessSSROutletDeferral is no longer
Canary-only; it shipped stable in React 19.3. Update the error message
and doc comments to point at React 19.3+ instead of React Canary.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014oASXrp3rxNu6veBebZrwp
Replace the pinned React Canary build with stable ^19.3.0, which now
ships the browser() API the example relies on.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014oASXrp3rxNu6veBebZrwp
@uhyo
uhyo merged commit 5665c10 into master Sep 10, 2026
1 check passed
@uhyo
uhyo deleted the claude/react-browser-api-docs-9gsr1g branch September 10, 2026 09:18
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.

2 participants