mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
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
This commit is contained in:
parent
0d072884f9
commit
3e9db65fc3
|
|
@ -573,7 +573,7 @@ describe('ReactCompositeComponent-state', () => {
|
|||
assertConsoleErrorDev([
|
||||
"Can't perform a React state update on a component that hasn't mounted yet. " +
|
||||
'This indicates that you have a side-effect in your render function that ' +
|
||||
'asynchronously later calls tries to update the component. ' +
|
||||
'asynchronously tries to update the component. ' +
|
||||
'Move this work to useEffect instead.\n' +
|
||||
' in B (at **)',
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -1922,7 +1922,7 @@ describe('ReactDOMServerPartialHydration', () => {
|
|||
assertConsoleErrorDev([
|
||||
"Can't perform a React state update on a component that hasn't mounted yet. " +
|
||||
'This indicates that you have a side-effect in your render function that ' +
|
||||
'asynchronously later calls tries to update the component. Move this work to useEffect instead.\n' +
|
||||
'asynchronously tries to update the component. Move this work to useEffect instead.\n' +
|
||||
' in App (at **)',
|
||||
]);
|
||||
|
||||
|
|
|
|||
|
|
@ -1883,7 +1883,7 @@ describe('ReactDOMServerPartialHydrationActivity', () => {
|
|||
assertConsoleErrorDev([
|
||||
"Can't perform a React state update on a component that hasn't mounted yet. " +
|
||||
'This indicates that you have a side-effect in your render function that ' +
|
||||
'asynchronously later calls tries to update the component. Move this work to useEffect instead.\n' +
|
||||
'asynchronously tries to update the component. Move this work to useEffect instead.\n' +
|
||||
' in App (at **)',
|
||||
]);
|
||||
|
||||
|
|
|
|||
|
|
@ -4802,7 +4802,7 @@ export function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber: Fiber) {
|
|||
console.error(
|
||||
"Can't perform a React state update on a component that hasn't mounted yet. " +
|
||||
'This indicates that you have a side-effect in your render function that ' +
|
||||
'asynchronously later calls tries to update the component. Move this work to ' +
|
||||
'asynchronously tries to update the component. Move this work to ' +
|
||||
'useEffect instead.',
|
||||
);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -764,7 +764,7 @@ describe('Activity', () => {
|
|||
assertConsoleErrorDev([
|
||||
"Can't perform a React state update on a component that hasn't mounted yet. " +
|
||||
'This indicates that you have a side-effect in your render function that ' +
|
||||
'asynchronously later calls tries to update the component. ' +
|
||||
'asynchronously tries to update the component. ' +
|
||||
'Move this work to useEffect instead.\n' +
|
||||
' in Child (at **)',
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user