react-crud-mobile 1.0.658 → 1.0.660
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/react-crud-mobile.cjs.development.js +3 -1
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +3 -1
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIChildren.tsx +1 -0
- package/src/hooks/useIsVisible.ts +1 -1
|
@@ -55,6 +55,7 @@ function UIChildren(props) {
|
|
|
55
55
|
var pps = _extends({}, child.props);
|
|
56
56
|
delete pps.children;
|
|
57
57
|
if (typeof Custom === 'string') {
|
|
58
|
+
console.log(Custom);
|
|
58
59
|
if (reactCrudUtils.Utils.isEmpty(child.props.children)) {
|
|
59
60
|
return /*#__PURE__*/jsxRuntime.jsx(Custom, _extends({}, pps));
|
|
60
61
|
}
|
|
@@ -676,7 +677,8 @@ function useIsVisible(ref, scope) {
|
|
|
676
677
|
setIsVisible = _useState[1];
|
|
677
678
|
React.useEffect(function () {
|
|
678
679
|
var checkVisibility = function checkVisibility() {
|
|
679
|
-
|
|
680
|
+
var _scope$original;
|
|
681
|
+
if (!ref.current || isVisible || !((_scope$original = scope.original) != null && _scope$original.useIsInView)) return;
|
|
680
682
|
if (reactNative.Platform.OS === 'web') {
|
|
681
683
|
var rect = ref.current.getBoundingClientRect == null ? void 0 : ref.current.getBoundingClientRect();
|
|
682
684
|
if (rect && typeof window !== 'undefined') {
|