@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.
@@ -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
@@ -133,5 +133,5 @@
133
133
  "test:watch": "eslint --fix && jest --updateSnapshot --watchAll"
134
134
  },
135
135
  "types": "dist/main/index.d.ts",
136
- "version": "4.5.1"
136
+ "version": "4.5.2"
137
137
  }