@samitouri / QOS-React-2 / commits / 9a395c2f2c

No need to reorder empty children either

Dan committed Apr 19, 2019 at 13:21 UTC 9a395c2f2c78172147c974de29727824168b51a0
1 file changed +2 -2
src/backend/renderer.js
+2 -2
@@ -937,8 +937,8 @@ export function attach(
937 }
938
939 const numChildren = nextChildren.length;
940 - if (numChildren === 1) {
941 - // No need to reorder a single child.
940 + if (numChildren < 2) {
941 + // No need to reorder.
942 return;
943 }
944 beginNextOperation(3 + numChildren);