@samitouri / QOS-React / commits / d3d5c050bd

Naming

Dan committed Apr 5, 2019 at 23:45 UTC d3d5c050bd11a0a90c4127f477896265be02d0ba
1 file changed +8 -8
src/backend/renderer.js
+8 -8
@@ -772,8 +772,8 @@ export function attach(
772 debug('mountFiberRecursively()', fiber, parentFiber);
773 }
774
775 - const shouldInclude = !shouldFilterFiber(fiber);
776 - if (shouldInclude) {
775 + const shouldIncludeInTree = !shouldFilterFiber(fiber);
776 + if (shouldIncludeInTree) {
777 recordMount(fiber, parentFiber);
778 }
779
@@ -791,7 +791,7 @@ export function attach(
791 if (fallbackChild !== null) {
792 mountFiberRecursively(
793 fallbackChild,
794 - shouldInclude ? fiber : parentFiber,
794 + shouldIncludeInTree ? fiber : parentFiber,
795 true
796 );
797 }
@@ -799,7 +799,7 @@ export function attach(
799 if (fiber.child !== null) {
800 mountFiberRecursively(
801 fiber.child,
802 - shouldInclude ? fiber : parentFiber,
802 + shouldIncludeInTree ? fiber : parentFiber,
803 true
804 );
805 }
@@ -971,7 +971,7 @@ export function attach(
971 }
972 }
973
974 - const shouldInclude = !shouldFilterFiber(nextFiber);
974 + const shouldIncludeInTree = !shouldFilterFiber(nextFiber);
975 let hasChildOrderChanged = false;
976 if (nextFiber.child !== prevFiber.child) {
977 // If the first child is different, we need to traverse them.
@@ -988,7 +988,7 @@ export function attach(
988 updateFiberRecursively(
989 nextChild,
990 prevChild,
991 - shouldInclude ? nextFiber : parentFiber
991 + shouldIncludeInTree ? nextFiber : parentFiber
992 );
993 // However we also keep track if the order of the children matches
994 // the previous order. They are always different referentially, but
@@ -999,7 +999,7 @@ export function attach(
999 } else {
1000 mountFiberRecursively(
1001 nextChild,
1002 - shouldInclude ? nextFiber : parentFiber
1002 + shouldIncludeInTree ? nextFiber : parentFiber
1003 );
1004 if (!hasChildOrderChanged) {
1005 hasChildOrderChanged = true;
@@ -1019,7 +1019,7 @@ export function attach(
1019 }
1020 }
1021
1022 - if (shouldInclude) {
1022 + if (shouldIncludeInTree) {
1023 maybeRecordUpdate(nextFiber, hasChildOrderChanged);
1024 }
1025 }