@reckona/mreact-compat 0.0.182 → 0.0.183
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/host-reconciler.js
CHANGED
|
@@ -1664,7 +1664,6 @@ function isFunctionComponentType(value) {
|
|
|
1664
1664
|
function tryCreateInitialHostOnlyFiber(current, node, key, options) {
|
|
1665
1665
|
if (current !== undefined ||
|
|
1666
1666
|
options.previousNodes !== undefined ||
|
|
1667
|
-
!shouldUseDirectHostTextChild() ||
|
|
1668
1667
|
typeof node.type !== "string" ||
|
|
1669
1668
|
!canCreateInitialHostOnlyNode(node)) {
|
|
1670
1669
|
return undefined;
|
|
@@ -1680,7 +1679,8 @@ function createInitialHostOnlyElementFiber(node, key, namespace, documentRef) {
|
|
|
1680
1679
|
fiber.stateNode = createHostElement(documentRef, elementType, namespace);
|
|
1681
1680
|
fiber.flags |= Placement;
|
|
1682
1681
|
fiber.hostChildListChanged = true;
|
|
1683
|
-
if (getDirectHostTextChild(node.props.children) === undefined
|
|
1682
|
+
if (getDirectHostTextChild(node.props.children) === undefined ||
|
|
1683
|
+
!shouldUseDirectHostTextChild()) {
|
|
1684
1684
|
fiber.child = createInitialHostOnlyChildList(fiber, node.props.children, childNamespace, documentRef);
|
|
1685
1685
|
}
|
|
1686
1686
|
return fiber;
|