Skip to content

Commit

Permalink
Fix typo in warning text (#18103)
Browse files Browse the repository at this point in the history
Mentioned in #18090.
  • Loading branch information
sophiebits committed Feb 28, 2020
1 parent 79a2512 commit 7ea4e41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react-reconciler/src/ReactFiberCommitWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function commitBeforeMutationLifeCycles(
'Expected %s state to match memoized state before ' +
'getSnapshotBeforeUpdate. ' +
'This might either be because of a bug in React, or because ' +
'a component reassigns its own `this.props`. ' +
'a component reassigns its own `this.state`. ' +
'Please file an issue.',
getComponentName(finishedWork.type) || 'instance',
);
Expand Down Expand Up @@ -490,7 +490,7 @@ function commitLifeCycles(
'Expected %s state to match memoized state before ' +
'componentDidMount. ' +
'This might either be because of a bug in React, or because ' +
'a component reassigns its own `this.props`. ' +
'a component reassigns its own `this.state`. ' +
'Please file an issue.',
getComponentName(finishedWork.type) || 'instance',
);
Expand Down Expand Up @@ -529,7 +529,7 @@ function commitLifeCycles(
'Expected %s state to match memoized state before ' +
'componentDidUpdate. ' +
'This might either be because of a bug in React, or because ' +
'a component reassigns its own `this.props`. ' +
'a component reassigns its own `this.state`. ' +
'Please file an issue.',
getComponentName(finishedWork.type) || 'instance',
);
Expand Down Expand Up @@ -566,7 +566,7 @@ function commitLifeCycles(
'Expected %s state to match memoized state before ' +
'processing the update queue. ' +
'This might either be because of a bug in React, or because ' +
'a component reassigns its own `this.props`. ' +
'a component reassigns its own `this.state`. ' +
'Please file an issue.',
getComponentName(finishedWork.type) || 'instance',
);
Expand Down

0 comments on commit 7ea4e41

Please sign in to comment.