@promoboxx/use-filter 1.8.2 → 1.8.3
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/useFilter.js +1 -1
- package/dist/useSimpleFilter.js +1 -1
- package/package.json +1 -1
package/dist/useFilter.js
CHANGED
|
@@ -164,7 +164,7 @@ function useFilter(namespace, options) {
|
|
|
164
164
|
if (shallowEqual_1.default(previous.filter, nextFilter)) {
|
|
165
165
|
return previous;
|
|
166
166
|
}
|
|
167
|
-
return __assign(__assign({}, previous), { offset: 0, page: 1, totalResults: 1, totalPages: 1, filter: nextFilter, lastRefreshAt: new Date().getTime(), shouldRunImmediately: shouldRunImmediately });
|
|
167
|
+
return __assign(__assign({}, previous), { offset: 0, page: 1, totalResults: 1, totalPages: 1, filter: nextFilter, lastRefreshAt: new Date().getTime(), cursor: undefined, nextCursor: undefined, shouldRunImmediately: shouldRunImmediately });
|
|
168
168
|
});
|
|
169
169
|
}, []),
|
|
170
170
|
resetFilter: react_1.useCallback(function (shouldRunImmediately) {
|
package/dist/useSimpleFilter.js
CHANGED
|
@@ -79,7 +79,7 @@ function useSimpleFilter(namespace, options) {
|
|
|
79
79
|
if (shallowEqual_1.default(previous.filter, nextFilter)) {
|
|
80
80
|
return previous;
|
|
81
81
|
}
|
|
82
|
-
return __assign(__assign({}, previous), { shouldRunImmediately: shouldRunImmediately, offset: 0, page: 1, totalResults: 1, totalPages: 1, filter: nextFilter, lastRefreshAt: new Date().getTime() });
|
|
82
|
+
return __assign(__assign({}, previous), { shouldRunImmediately: shouldRunImmediately, offset: 0, page: 1, totalResults: 1, totalPages: 1, filter: nextFilter, cursor: undefined, lastRefreshAt: new Date().getTime() });
|
|
83
83
|
});
|
|
84
84
|
}, []),
|
|
85
85
|
pagingInfo: react_1.useCallback(function (total) {
|