Fix typo in error message. (#33313)
## Summary I am writing code that isn't so good, so I saw this error message many times. It appears to have a typo. This PR fixes the typo. ## How did you test this change? Ran the tests
Christoph Nakazawa committed
May 23, 2025 at 05:18 UTC
3e9db65fc3341148a5248b3ffc6bc68c0640fd3f
5 files changed
+5
-5
packages/react-dom/src/__tests__/ReactCompositeComponentState-test.js
+1
-1
@@ -573,7 +573,7 @@ describe('ReactCompositeComponent-state', () => {
573
assertConsoleErrorDev([
574
"Can't perform a React state update on a component that hasn't mounted yet. " +
575
'This indicates that you have a side-effect in your render function that ' +
576
- 'asynchronously later calls tries to update the component. ' +
576
+ 'asynchronously tries to update the component. ' +
577
'Move this work to useEffect instead.\n' +
578
' in B (at **)',
579
]);
packages/react-dom/src/__tests__/ReactDOMServerPartialHydration-test.internal.js
+1
-1
@@ -1922,7 +1922,7 @@ describe('ReactDOMServerPartialHydration', () => {
1922
assertConsoleErrorDev([
1923
"Can't perform a React state update on a component that hasn't mounted yet. " +
1924
'This indicates that you have a side-effect in your render function that ' +
1925
- 'asynchronously later calls tries to update the component. Move this work to useEffect instead.\n' +
1925
+ 'asynchronously tries to update the component. Move this work to useEffect instead.\n' +
1926
' in App (at **)',
1927
]);
1928
packages/react-dom/src/__tests__/ReactDOMServerPartialHydrationActivity-test.internal.js
+1
-1
@@ -1883,7 +1883,7 @@ describe('ReactDOMServerPartialHydrationActivity', () => {
1883
assertConsoleErrorDev([
1884
"Can't perform a React state update on a component that hasn't mounted yet. " +
1885
'This indicates that you have a side-effect in your render function that ' +
1886
- 'asynchronously later calls tries to update the component. Move this work to useEffect instead.\n' +
1886
+ 'asynchronously tries to update the component. Move this work to useEffect instead.\n' +
1887
' in App (at **)',
1888
]);
1889
packages/react-reconciler/src/ReactFiberWorkLoop.js
+1
-1
@@ -4802,7 +4802,7 @@ export function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber: Fiber) {
4802
console.error(
4803
"Can't perform a React state update on a component that hasn't mounted yet. " +
4804
'This indicates that you have a side-effect in your render function that ' +
4805
- 'asynchronously later calls tries to update the component. Move this work to ' +
4805
+ 'asynchronously tries to update the component. Move this work to ' +
4806
'useEffect instead.',
4807
);
4808
});
packages/react-reconciler/src/__tests__/Activity-test.js
+1
-1
@@ -764,7 +764,7 @@ describe('Activity', () => {
764
assertConsoleErrorDev([
765
"Can't perform a React state update on a component that hasn't mounted yet. " +
766
'This indicates that you have a side-effect in your render function that ' +
767
- 'asynchronously later calls tries to update the component. ' +
767
+ 'asynchronously tries to update the component. ' +
768
'Move this work to useEffect instead.\n' +
769
' in Child (at **)',
770
]);