@@ -266,8 +266,8 @@ function forceUnmountCurrentAndReconcile(
266266 ) ;
267267 // In the second pass, we mount the new children. The trick here is that we
268268 // 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 .
271271 workInProgress . child = reconcileChildFibers (
272272 workInProgress ,
273273 null ,
@@ -518,7 +518,7 @@ function updateSimpleMemoComponent(
518518 if (
519519 shallowEqual ( prevProps , nextProps ) &&
520520 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.
522522 ( __DEV__ ? workInProgress . type === current . type : true )
523523 ) {
524524 didReceiveUpdate = false ;
@@ -807,9 +807,9 @@ function updateClassComponent(
807807 let shouldUpdate ;
808808 if ( instance === null ) {
809809 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
813813 // committed. Disconnect the alternate pointers.
814814 current . alternate = null ;
815815 workInProgress . alternate = null ;
@@ -906,7 +906,7 @@ function finishClassComponent(
906906 didCaptureError &&
907907 typeof Component . getDerivedStateFromError !== 'function'
908908 ) {
909- // If we captured an error, but getDerivedStateFrom catch is not defined,
909+ // If we captured an error, but getDerivedStateFromError is not defined,
910910 // unmount all the children. componentDidCatch will schedule an update to
911911 // re-render a fallback. This is temporary until we migrate everyone to
912912 // the new API.
@@ -1066,7 +1066,7 @@ function updateHostComponent(current, workInProgress, renderExpirationTime) {
10661066 if ( isDirectTextChild ) {
10671067 // We special case a direct text child of a host node. This is a common
10681068 // 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
10701070 // avoids allocating another HostText fiber and traversing it.
10711071 nextChildren = null ;
10721072 } else if ( prevProps !== null && shouldSetTextContent ( type , prevProps ) ) {
@@ -1117,7 +1117,7 @@ function mountLazyComponent(
11171117 renderExpirationTime ,
11181118) {
11191119 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-
11211121 // concurrent tree, in an inconsistent state. We want to treat it like
11221122 // a new mount, even though an empty version of it already committed.
11231123 // Disconnect the alternate pointers.
@@ -2001,7 +2001,7 @@ function updateSuspenseComponent(
20012001 workInProgress . child = primaryChildFragment ;
20022002 return fallbackChildFragment ;
20032003 } 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
20052005 // normally do.
20062006 workInProgress . memoizedState = null ;
20072007 const nextPrimaryChildren = nextProps . children ;
0 commit comments