Skip to content

Commit 3e9db65

Browse files
authored
Fix typo in error message. (facebook#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
1 parent 0d07288 commit 3e9db65

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

packages/react-dom/src/__tests__/ReactCompositeComponentState-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ describe('ReactCompositeComponent-state', () => {
573573
assertConsoleErrorDev([
574574
"Can't perform a React state update on a component that hasn't mounted yet. " +
575575
'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. ' +
577577
'Move this work to useEffect instead.\n' +
578578
' in B (at **)',
579579
]);

packages/react-dom/src/__tests__/ReactDOMServerPartialHydration-test.internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,7 @@ describe('ReactDOMServerPartialHydration', () => {
19221922
assertConsoleErrorDev([
19231923
"Can't perform a React state update on a component that hasn't mounted yet. " +
19241924
'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' +
19261926
' in App (at **)',
19271927
]);
19281928

packages/react-dom/src/__tests__/ReactDOMServerPartialHydrationActivity-test.internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,7 @@ describe('ReactDOMServerPartialHydrationActivity', () => {
18831883
assertConsoleErrorDev([
18841884
"Can't perform a React state update on a component that hasn't mounted yet. " +
18851885
'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' +
18871887
' in App (at **)',
18881888
]);
18891889

packages/react-reconciler/src/ReactFiberWorkLoop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4802,7 +4802,7 @@ export function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber: Fiber) {
48024802
console.error(
48034803
"Can't perform a React state update on a component that hasn't mounted yet. " +
48044804
'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 ' +
48064806
'useEffect instead.',
48074807
);
48084808
});

packages/react-reconciler/src/__tests__/Activity-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ describe('Activity', () => {
764764
assertConsoleErrorDev([
765765
"Can't perform a React state update on a component that hasn't mounted yet. " +
766766
'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. ' +
768768
'Move this work to useEffect instead.\n' +
769769
' in Child (at **)',
770770
]);

0 commit comments

Comments
 (0)