Skip to content

Commit 7ea4e41

Browse files
authored
Fix typo in warning text (#18103)
Mentioned in #18090.
1 parent 79a2512 commit 7ea4e41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/react-reconciler/src/ReactFiberCommitWork.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ function commitBeforeMutationLifeCycles(
282282
'Expected %s state to match memoized state before ' +
283283
'getSnapshotBeforeUpdate. ' +
284284
'This might either be because of a bug in React, or because ' +
285-
'a component reassigns its own `this.props`. ' +
285+
'a component reassigns its own `this.state`. ' +
286286
'Please file an issue.',
287287
getComponentName(finishedWork.type) || 'instance',
288288
);
@@ -490,7 +490,7 @@ function commitLifeCycles(
490490
'Expected %s state to match memoized state before ' +
491491
'componentDidMount. ' +
492492
'This might either be because of a bug in React, or because ' +
493-
'a component reassigns its own `this.props`. ' +
493+
'a component reassigns its own `this.state`. ' +
494494
'Please file an issue.',
495495
getComponentName(finishedWork.type) || 'instance',
496496
);
@@ -529,7 +529,7 @@ function commitLifeCycles(
529529
'Expected %s state to match memoized state before ' +
530530
'componentDidUpdate. ' +
531531
'This might either be because of a bug in React, or because ' +
532-
'a component reassigns its own `this.props`. ' +
532+
'a component reassigns its own `this.state`. ' +
533533
'Please file an issue.',
534534
getComponentName(finishedWork.type) || 'instance',
535535
);
@@ -566,7 +566,7 @@ function commitLifeCycles(
566566
'Expected %s state to match memoized state before ' +
567567
'processing the update queue. ' +
568568
'This might either be because of a bug in React, or because ' +
569-
'a component reassigns its own `this.props`. ' +
569+
'a component reassigns its own `this.state`. ' +
570570
'Please file an issue.',
571571
getComponentName(finishedWork.type) || 'instance',
572572
);

0 commit comments

Comments
 (0)