diff --git a/ReactCommon/fabric/view/yoga/YogaLayoutableShadowNode.cpp b/ReactCommon/fabric/view/yoga/YogaLayoutableShadowNode.cpp index 71e5ac89b34..e2aa05f843a 100644 --- a/ReactCommon/fabric/view/yoga/YogaLayoutableShadowNode.cpp +++ b/ReactCommon/fabric/view/yoga/YogaLayoutableShadowNode.cpp @@ -105,9 +105,8 @@ void YogaLayoutableShadowNode::appendChild(SharedYogaLayoutableShadowNode child) } void YogaLayoutableShadowNode::layout(LayoutContext layoutContext) { - ensureUnsealed(); - if (!getIsLayoutClean()) { + ensureUnsealed(); YGNode *yogaNode = const_cast(yogaNode_.get()); YGNodeCalculateLayout(yogaNode, YGUndefined, YGUndefined, YGDirectionInherit); } @@ -116,8 +115,6 @@ void YogaLayoutableShadowNode::layout(LayoutContext layoutContext) { } void YogaLayoutableShadowNode::layoutChildren(LayoutContext layoutContext) { - ensureUnsealed(); - for (auto child : getChildren()) { auto yogaLayoutableChild = std::dynamic_pointer_cast(child); if (!yogaLayoutableChild) {