Set pendingProps in cloneFiber for symmetry
This might become confusing later but is unreachable today. That's because existing pendingProps only matter when a clone is updated, but this path can only matter when it is created.
Sebastian Markbage committed
Jul 7, 2016 at 14:00 UTC
d0838797a31d396337df97170eb89b6c9c277067
1 file changed
+2
src/renderers/shared/fiber/ReactFiber.js
+2
@@ -188,6 +188,8 @@ exports.cloneFiber = function(fiber : Fiber, priorityLevel : PriorityLevel) : Fi
188
alt.child = fiber.child;
189
alt.sibling = fiber.sibling;
190
alt.ref = alt.ref;
191
+ // pendingProps is here for symmetry but is unnecessary in practice for now.
192
+ alt.pendingProps = fiber.pendingProps;
193
alt.pendingWorkPriority = priorityLevel;
194
195
alt.alternate = fiber;