New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support React 19 in App and Pages router #65058
Commits on May 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 618ceee - Browse repository at this point
Copy the full SHA 618ceeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84ef617 - Browse repository at this point
Copy the full SHA 84ef617View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf89684 - Browse repository at this point
Copy the full SHA cf89684View commit details -
Use
react-dom
directly instead of server-rendering-stubNo longer needed now that facebook/react#28271 exists
Configuration menu - View commit details
-
Copy full SHA for 41a97c3 - Browse repository at this point
Copy the full SHA 41a97c3View commit details -
Inline tests for integration/react-18
Adds indirection when trying to find a failing test or focusing on one.
Configuration menu - View commit details
-
Copy full SHA for 6e8445c - Browse repository at this point
Copy the full SHA 6e8445cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2009625 - Browse repository at this point
Copy the full SHA 2009625View commit details -
During Beta, supporting both React 18 in Pages router and React 19 in App router would be very complicated. Instead, we just support a single version. Once 19 is stable, we will widen support to 19.x in Pages router.
Configuration menu - View commit details
-
Copy full SHA for 37cf4c9 - Browse repository at this point
Copy the full SHA 37cf4c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c388cf - Browse repository at this point
Copy the full SHA 7c388cfView commit details -
useFormState -> useActionState
Kept the transform support since useFormState still exists.
Configuration menu - View commit details
-
Copy full SHA for 6cd9405 - Browse repository at this point
Copy the full SHA 6cd9405View commit details -
Configuration menu - View commit details
-
Copy full SHA for 603dc09 - Browse repository at this point
Copy the full SHA 603dc09View commit details -
Was originally implemented by React. Unclear if this is entrypoint is sufficient. But at least it works in `test/e2e/app-dir/app/`'s /react-fetch/server-component page.
Configuration menu - View commit details
-
Copy full SHA for 0d0aa62 - Browse repository at this point
Copy the full SHA 0d0aa62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82f1e90 - Browse repository at this point
Copy the full SHA 82f1e90View commit details -
- fixed brittle onLoad test (see #37993) - src="" is now omitted
Configuration menu - View commit details
-
Copy full SHA for 7cb4d22 - Browse repository at this point
Copy the full SHA 7cb4d22View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd32f40 - Browse repository at this point
Copy the full SHA dd32f40View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2275c7d - Browse repository at this point
Copy the full SHA 2275c7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d6699ee - Browse repository at this point
Copy the full SHA d6699eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ed9c92 - Browse repository at this point
Copy the full SHA 6ed9c92View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37338f1 - Browse repository at this point
Copy the full SHA 37338f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e17b5e - Browse repository at this point
Copy the full SHA 8e17b5eView commit details -
Pages Router: Fix error overlay
Same changes we did for App Router in fd04461
Configuration menu - View commit details
-
Copy full SHA for 7a62dc7 - Browse repository at this point
Copy the full SHA 7a62dc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64aa113 - Browse repository at this point
Copy the full SHA 64aa113View commit details -
Needs follow-up: https://vercel.slack.com/archives/C04TR3U872A/p1714478664558989
Configuration menu - View commit details
-
Copy full SHA for 5664c85 - Browse repository at this point
Copy the full SHA 5664c85View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92ca39b - Browse repository at this point
Copy the full SHA 92ca39bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e7ce7c0 - Browse repository at this point
Copy the full SHA e7ce7c0View commit details -
Seems like just chunk ids changed. Probably when I changed some Webpack config?
Configuration menu - View commit details
-
Copy full SHA for cb1c174 - Browse repository at this point
Copy the full SHA cb1c174View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ec7f27 - Browse repository at this point
Copy the full SHA 8ec7f27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7659179 - Browse repository at this point
Copy the full SHA 7659179View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7c9949 - Browse repository at this point
Copy the full SHA d7c9949View commit details -
Restore collapse/expand for hydration diffs
May be not necessary for hydration diffs to expand. But also doesn't hurt to include?
Configuration menu - View commit details
-
Copy full SHA for 30628ff - Browse repository at this point
Copy the full SHA 30628ffView commit details -
Pages router handles hydration errors as runtime errors
This was already the case on canary. We just need to rewrite this whole feature. There are too many places interceptiong error events and console error. And then we fork on top of that between App router and pages router. Should be done after landing the sync.
Configuration menu - View commit details
-
Copy full SHA for d453769 - Browse repository at this point
Copy the full SHA d453769View commit details -
Stop using next/head for scripts
We warn specifically because it's not compatible with Suspense and streaming. Using next/head results in `window.scriptExecutionIds` to resolve to ['src-1.js', 'src-1.js'] For inline scripts we document this: https://nextjs.org/docs/messages/inline-script-id
Configuration menu - View commit details
-
Copy full SHA for 330b523 - Browse repository at this point
Copy the full SHA 330b523View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12b9753 - Browse repository at this point
Copy the full SHA 12b9753View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cc6777 - Browse repository at this point
Copy the full SHA 2cc6777View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e4de91 - Browse repository at this point
Copy the full SHA 3e4de91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 635e901 - Browse repository at this point
Copy the full SHA 635e901View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71ab968 - Browse repository at this point
Copy the full SHA 71ab968View commit details