Skip to content

Commit c656dee

Browse files
committed
Remove extraneous word from DEV warning
1 parent c498bfc commit c656dee

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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 later 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 later tries to update the component. Move this work to useEffect instead.\n' +
19261926
' in App (at **)',
19271927
]);
19281928

packages/react-reconciler/src/ReactFiberWorkLoop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4787,7 +4787,7 @@ export function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber: Fiber) {
47874787
console.error(
47884788
"Can't perform a React state update on a component that hasn't mounted yet. " +
47894789
'This indicates that you have a side-effect in your render function that ' +
4790-
'asynchronously later calls tries to update the component. Move this work to ' +
4790+
'asynchronously later tries to update the component. Move this work to ' +
47914791
'useEffect instead.',
47924792
);
47934793
});

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 later tries to update the component. ' +
768768
'Move this work to useEffect instead.\n' +
769769
' in Child (at **)',
770770
]);

0 commit comments

Comments
 (0)