@samitouri / QOS-React / commits / 7daa90206d

Add missing portal case to updateSlot switch statement

Andrew Clark committed Jan 30, 2017 at 12:22 UTC 7daa90206def22ce0201696349049347ac156a2d
1 file changed +8
src/renderers/shared/fiber/ReactChildFiber.js
+8
@@ -508,6 +508,14 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
508 return null;
509 }
510 }
511 +
512 + case REACT_PORTAL_TYPE: {
513 + if (newChild.key === key) {
514 + return updatePortal(returnFiber, oldFiber, newChild, priority);
515 + } else {
516 + return null;
517 + }
518 + }
519 }
520
521 if (isArray(newChild) || getIteratorFn(newChild)) {