kui-crm 0.0.310 → 0.0.311
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/cjs/index.js +4 -4
- package/cjs/index.js.map +1 -1
- package/hooks/cjs/index.js +4 -4
- package/hooks/cjs/index.js.map +1 -1
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +4 -4
- package/hooks/index.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -1079,7 +1079,7 @@ var usePortalPosition = function (portalParentRef) {
|
|
|
1079
1079
|
return coords;
|
|
1080
1080
|
};
|
|
1081
1081
|
|
|
1082
|
-
var useFetchPage = function (paginator, fetchAll, deps) {
|
|
1082
|
+
var useFetchPage = function (paginator, fetchAll, deps, cleanupDeps) {
|
|
1083
1083
|
React.useEffect(function () {
|
|
1084
1084
|
if ((paginator === null || paginator === void 0 ? void 0 : paginator.isFetching) && !(paginator === null || paginator === void 0 ? void 0 : paginator.isFinishPage) && fetchAll) {
|
|
1085
1085
|
fetchAll();
|
|
@@ -1091,7 +1091,7 @@ var useFetchPage = function (paginator, fetchAll, deps) {
|
|
|
1091
1091
|
React.useEffect(function () { return function () {
|
|
1092
1092
|
paginator === null || paginator === void 0 ? void 0 : paginator.clearOffset();
|
|
1093
1093
|
paginator === null || paginator === void 0 ? void 0 : paginator.startFetching();
|
|
1094
|
-
}; }, deps || []);
|
|
1094
|
+
}; }, __spreadArray(__spreadArray([], (deps || []), true), (cleanupDeps || []), true));
|
|
1095
1095
|
};
|
|
1096
1096
|
|
|
1097
1097
|
var useScrollWithBottomSpacing = function (spacingToBottom, delay, callback, element, deps) {
|
|
@@ -1113,8 +1113,8 @@ var useScrollWithBottomSpacing = function (spacingToBottom, delay, callback, ele
|
|
|
1113
1113
|
}, __spreadArray([delay], (deps || []), true));
|
|
1114
1114
|
};
|
|
1115
1115
|
|
|
1116
|
-
var usePaginationPage = function (paginator, fetchAll, filter, deps) {
|
|
1117
|
-
useFetchPage(paginator, fetchAll, deps);
|
|
1116
|
+
var usePaginationPage = function (paginator, fetchAll, filter, deps, cleanupDeps) {
|
|
1117
|
+
useFetchPage(paginator, fetchAll, deps, cleanupDeps);
|
|
1118
1118
|
kuiUtils.useDebounce((filter === null || filter === void 0 ? void 0 : filter.searchQuery) || "", 500, function () {
|
|
1119
1119
|
if (filter) {
|
|
1120
1120
|
paginator === null || paginator === void 0 ? void 0 : paginator.clearOffset();
|