@webkrafters/react-observable-context 4.5.1 → 4.5.2
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/main/index.js +2 -2
- package/package.json +1 -1
package/dist/main/index.js
CHANGED
|
@@ -263,8 +263,8 @@ function makeObservable(Provider) {
|
|
|
263
263
|
}
|
|
264
264
|
function memoizeImmediateChildTree(children) {
|
|
265
265
|
return _react.Children.map(children, function (child) {
|
|
266
|
-
var _child$props;
|
|
267
|
-
if (_typeof(child.type) === 'object' && 'compare' in child.type) {
|
|
266
|
+
var _child, _child$props;
|
|
267
|
+
if (!((_child = child) !== null && _child !== void 0 && _child.type) || _typeof(child.type) === 'object' && 'compare' in child.type) {
|
|
268
268
|
return child;
|
|
269
269
|
}
|
|
270
270
|
if ((_child$props = child.props) !== null && _child$props !== void 0 && _child$props.children) {
|
package/package.json
CHANGED