File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -831,7 +831,7 @@ function ChildReconciler(shouldTrackSideEffects) {
831
831
newChildren [ newIdx ] ,
832
832
expirationTime ,
833
833
) ;
834
- if ( ! newFiber ) {
834
+ if ( newFiber === null ) {
835
835
continue ;
836
836
}
837
837
lastPlacedIndex = placeChild ( newFiber , lastPlacedIndex , newIdx ) ;
@@ -858,7 +858,7 @@ function ChildReconciler(shouldTrackSideEffects) {
858
858
newChildren [ newIdx ] ,
859
859
expirationTime ,
860
860
) ;
861
- if ( newFiber ) {
861
+ if ( newFiber !== null ) {
862
862
if ( shouldTrackSideEffects ) {
863
863
if ( newFiber . alternate !== null ) {
864
864
// The new fiber is a work in progress, but if there exists a
@@ -982,7 +982,7 @@ function ChildReconciler(shouldTrackSideEffects) {
982
982
// unfortunate because it triggers the slow path all the time. We need
983
983
// a better way to communicate whether this was a miss or null,
984
984
// boolean, undefined, etc.
985
- if ( ! oldFiber ) {
985
+ if ( oldFiber === null ) {
986
986
oldFiber = nextOldFiber ;
987
987
}
988
988
break ;
You can’t perform that action at this time.
0 commit comments