Skip to content

Pin matching React Canary versions in Sandpack demos - #8614

Merged
aurorascharff merged 2 commits into
reactjs:mainfrom
aurorascharff:codex/pin-browser-demo-canary
Aug 20, 2026
Merged

Pin matching React Canary versions in Sandpack demos#8614
aurorascharff merged 2 commits into
reactjs:mainfrom
aurorascharff:codex/pin-browser-demo-canary

Conversation

@aurorascharff

@aurorascharff aurorascharff commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • pin react and react-dom to the same exact Canary build in all 34 Canary Sandpack manifests
  • cover the browser, use, Suspense, ViewTransition, and Fragment references, plus the View Transitions Labs post
  • prevent Sandpack caches from resolving identical floating canary tags to incompatible React builds

Why

Sandpack can cache the two floating canary dependencies independently. One browser demo resolved react to 19.3.0-canary-eb8feb71-20260814 and react-dom to 19.3.0-canary-eafeac09-20260819, which fails because the packages require exact version equality.

This pins both packages to the August 14 build, which is available through react.dev's custom Sandpack bundler and includes the browser API used by the new examples.

Verification

  • confirmed no floating react or react-dom Canary dependencies remain in source content
  • ran the browser docs example against react.dev's custom Sandpack bundler: server rendering showed the Suspense fallback, then hydration displayed the browser-only editor
  • Prettier check on all six changed Markdown files
  • heading ID check on all six changed Markdown files
  • git diff --check

@aurorascharff
aurorascharff force-pushed the codex/pin-browser-demo-canary branch from 74cdc1c to fea8075 Compare August 20, 2026 17:12
@github-actions

Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@aurorascharff aurorascharff changed the title Pin matching React Canary versions in browser demos Pin matching React Canary versions in Sandpack demos Aug 20, 2026
@aurorascharff
aurorascharff marked this pull request as ready for review August 20, 2026 19:06
@aurorascharff
aurorascharff merged commit 0d29012 into reactjs:main Aug 20, 2026
7 checks passed
@aurorascharff
aurorascharff deleted the codex/pin-browser-demo-canary branch August 20, 2026 19:10
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.

1 participant