Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/react-reconciler/src/ReactStrictModeWarnings.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,13 @@ if (__DEV__) {

runWithFiberInDEV(firstFiber, () => {
console.error(
'Legacy context API has been detected within a strict-mode tree.' +
'\n\nThe old API will be supported in all 16.x releases, but applications ' +
'using it should migrate to the new version.' +
'\n\nPlease update the following components: %s' +
'\n\nLearn more about this warning here: https://react.dev/link/legacy-context',
'Legacy context API detected inside a StrictMode tree.\n\n' +
'Support for the legacy API will eventually be removed. ' +
'Please migrate the following components to the modern context API:\n\n%s\n\n' +
'More info: https://react.dev/link/legacy-context',
sortedNames,
);

});
},
);
Expand Down