@@ -266,8 +266,8 @@ function forceUnmountCurrentAndReconcile(
266
266
) ;
267
267
// In the second pass, we mount the new children. The trick here is that we
268
268
// pass null in place of where we usually pass the current child set. This has
269
- // the effect of remounting all children regardless of whether their their
270
- // identity matches .
269
+ // the effect of remounting all children regardless of whether their
270
+ // identities match .
271
271
workInProgress . child = reconcileChildFibers (
272
272
workInProgress ,
273
273
null ,
@@ -518,7 +518,7 @@ function updateSimpleMemoComponent(
518
518
if (
519
519
shallowEqual ( prevProps , nextProps ) &&
520
520
current . ref === workInProgress . ref &&
521
- // Prevent bailout if the implementation changed due to hot reload:
521
+ // Prevent bailout if the implementation changed due to hot reload.
522
522
( __DEV__ ? workInProgress . type === current . type : true )
523
523
) {
524
524
didReceiveUpdate = false ;
@@ -807,9 +807,9 @@ function updateClassComponent(
807
807
let shouldUpdate ;
808
808
if ( instance === null ) {
809
809
if ( current !== null ) {
810
- // An class component without an instance only mounts if it suspended
811
- // inside a non- concurrent tree, in an inconsistent state. We want to
812
- // tree it like a new mount, even though an empty version of it already
810
+ // A class component without an instance only mounts if it suspended
811
+ // inside a non-concurrent tree, in an inconsistent state. We want to
812
+ // treat it like a new mount, even though an empty version of it already
813
813
// committed. Disconnect the alternate pointers.
814
814
current . alternate = null ;
815
815
workInProgress . alternate = null ;
@@ -906,7 +906,7 @@ function finishClassComponent(
906
906
didCaptureError &&
907
907
typeof Component . getDerivedStateFromError !== 'function'
908
908
) {
909
- // If we captured an error, but getDerivedStateFrom catch is not defined,
909
+ // If we captured an error, but getDerivedStateFromError is not defined,
910
910
// unmount all the children. componentDidCatch will schedule an update to
911
911
// re-render a fallback. This is temporary until we migrate everyone to
912
912
// the new API.
@@ -1066,7 +1066,7 @@ function updateHostComponent(current, workInProgress, renderExpirationTime) {
1066
1066
if ( isDirectTextChild ) {
1067
1067
// We special case a direct text child of a host node. This is a common
1068
1068
// case. We won't handle it as a reified child. We will instead handle
1069
- // this in the host environment that also have access to this prop. That
1069
+ // this in the host environment that also has access to this prop. That
1070
1070
// avoids allocating another HostText fiber and traversing it.
1071
1071
nextChildren = null ;
1072
1072
} else if ( prevProps !== null && shouldSetTextContent ( type , prevProps ) ) {
@@ -1117,7 +1117,7 @@ function mountLazyComponent(
1117
1117
renderExpirationTime ,
1118
1118
) {
1119
1119
if ( _current !== null ) {
1120
- // An lazy component only mounts if it suspended inside a non-
1120
+ // A lazy component only mounts if it suspended inside a non-
1121
1121
// concurrent tree, in an inconsistent state. We want to treat it like
1122
1122
// a new mount, even though an empty version of it already committed.
1123
1123
// Disconnect the alternate pointers.
@@ -2001,7 +2001,7 @@ function updateSuspenseComponent(
2001
2001
workInProgress . child = primaryChildFragment ;
2002
2002
return fallbackChildFragment ;
2003
2003
} else {
2004
- // Still haven't timed out. Continue rendering the children, like we
2004
+ // Still haven't timed out. Continue rendering the children, like we
2005
2005
// normally do.
2006
2006
workInProgress . memoizedState = null ;
2007
2007
const nextPrimaryChildren = nextProps . children ;
0 commit comments