Skip to content

chore(deps): update react to 19.2.0#2

Open
devsilvarafael wants to merge 1 commit intomainfrom
deps/update-react-19.2.0
Open

chore(deps): update react to 19.2.0#2
devsilvarafael wants to merge 1 commit intomainfrom
deps/update-react-19.2.0

Conversation

@devsilvarafael
Copy link
Copy Markdown
Owner

Bumps react from ^17.0.2 to 19.2.0.

Changelog

Below is a list of all new features, APIs, and bug fixes.

Read the React 19.2 release post for more information.

New React Features

  • <Activity>: A new API to hide and restore the UI and internal state of its children.
  • useEffectEvent is a React Hook that lets you extract non-reactive logic into an Effect Event.
  • cacheSignal (for RSCs) lets your know when the cache() lifetime is over.
  • React Performance tracks appear on the Performance panel’s timeline in your browser developer tools

New React DOM Features

  • Added resume APIs for partial pre-rendering with Web Streams:
  • Added resume APIs for partial pre-rendering with Node Streams:
  • Updated prerender APIs to return a postponed state that can be passed to the resume APIs.

Notable changes

  • React DOM now batches suspense boundary reveals, matching the behavior of client side rendering. This change is especially noticeable when animating the reveal of Suspense boundaries e.g. with the upcoming <ViewTransition> Component. React will batch as much reveals as possible before the first paint while trying to hit popular first-contentful paint metrics.
  • Add Node Web Streams (prerender, renderToReadableStream) to server-side-rendering APIs for Node.js
  • Use underscore instead of : IDs generated by useId

All Changes

React

React DOM

React Server Components

React Reconciler

eslint-plugin-react-hooks@6.1.0

Note: Version 6.0.0 was mistakenly released and immediately deprecated and untagged on npm. This is the first official 6.x major release and includes breaking changes.

  • Breaking: Require Node.js 18 or newer. (@michaelfaith in #32458)
  • Breaking: Flat config is now the default recommended preset. Legacy config moved to recommended-legacy. (@michaelfaith in #32457)
  • New Violations: Disallow calling use within try/catch blocks. (@poteto in #34040)
  • New Violations: Disallow calling useEffectEvent functions in arbitrary closures. (@jbrown215 in #33544)
  • Handle React.useEffect in addition to useEffect in rules-of-hooks. (@Ayc0 in #34076)
  • Added react-hooks settings config option that to accept additionalEffectHooks that are used across exhaustive-deps and rules-of-hooks rules. (@jbrown215) in #34497

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dtmoney Error Error Mar 31, 2026 6:45pm

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the React dependency to version 19.2.0. A critical issue was identified regarding a version mismatch between react and react-dom, which must be updated together to prevent runtime errors. Additionally, the review suggests updating type definitions, migrating the entry point to the createRoot API, and using the caret prefix for version consistency.

"miragejs": "^0.1.43",
"polished": "^4.1.4",
"react": "^17.0.2",
"react": "19.2.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Upgrading react to version 19 while leaving react-dom at version 17 (line 18) will cause runtime errors due to a version mismatch. These packages must be updated in tandem to the same version. Additionally, the following updates are required for a successful migration to React 19:

  • Update @types/react and @types/react-dom to version 19 to avoid TypeScript compilation errors.
  • Update the application entry point in src/index.tsx to use the createRoot API, as ReactDOM.render is deprecated and behaves differently in React 19.
  • Use the caret (^) prefix for the version string to maintain consistency with the other dependencies in this file.
Suggested change
"react": "19.2.0",
"react": "^19.2.0",

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