Align browser() API references with stable React 19.3 - #250
Merged
Conversation
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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
React's
browser()API, used by thepathlessSSROutletDeferralfeature, 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.pathlessSSROutletDeferralruntime error message and doc comments (browserBailout.ts,Router/index.tsx, bailout tests) now say "React 19.3 or later" instead of "currently React Canary".RouterFeaturesentry in the components API reference now describebrowser()as stable since React 19.3.react/react-dommoved from the pinned19.3.0-canary-eb8feb71-20260814build to stable^19.3.0; the lockfile is regenerated and free of canary entries.Not touched: the
addTransitionTypeCanary warnings (separate API, stability not confirmed), and the router's own devDependency on react-dom 19.2 —browserBailout.unsupported.test.tsxintentionally 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 passpnpm typecheck,pnpm lint,pnpm format:check— cleanexample-pathless-ssragainst stable React 19.3: the pre-rendered HTML contains the Suspense fallback in place of the outlet, confirming stable react-dom 19.3 exportsbrowser()and the deferral works🤖 Generated with Claude Code
https://claude.ai/code/session_014oASXrp3rxNu6veBebZrwp
Generated by Claude Code