mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Update error messages (#28652)
## Overview The error messages that say: > ReactDOM.hydrate is no longer supported in React 18 Don't make sense in the React 19 release. Instead, they should say: > ReactDOM.hydrate was removed in React 19. For legacy mode, they should say: > ReactDOM.hydrate has not been supported since React 18.
This commit is contained in:
@@ -17,10 +17,13 @@ module.exports = function shouldIgnoreConsoleError(
|
||||
return true;
|
||||
}
|
||||
if (
|
||||
format.indexOf('ReactDOM.render is no longer supported in React 18') !==
|
||||
-1 ||
|
||||
format.indexOf('ReactDOM.render was removed in React 19') !== -1 ||
|
||||
format.indexOf('ReactDOM.hydrate was removed in React 19') !== -1 ||
|
||||
format.indexOf(
|
||||
'ReactDOM.hydrate is no longer supported in React 18'
|
||||
'ReactDOM.render has not been supported since React 18'
|
||||
) !== -1 ||
|
||||
format.indexOf(
|
||||
'ReactDOM.hydrate has not been supported since React 18'
|
||||
) !== -1
|
||||
) {
|
||||
// We haven't finished migrating our tests to use createRoot.
|
||||
|
||||
Reference in New Issue
Block a user