@rebasepro/core 0.4.0 → 0.5.0
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/README.md +142 -210
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +6 -7
- package/src/components/common/useDataTableController.tsx +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -2543,7 +2543,7 @@
|
|
|
2543
2543
|
sortBy: urlSortBy
|
|
2544
2544
|
} = parseFilterAndSort(location.search);
|
|
2545
2545
|
if (!fixedFilter) {
|
|
2546
|
-
setFilterValues(urlFilterValues);
|
|
2546
|
+
setFilterValues(urlFilterValues ?? defaultFilter);
|
|
2547
2547
|
}
|
|
2548
2548
|
if (urlSortBy && fixedFilter && !checkFilterCombination(fixedFilter, urlSortBy)) {
|
|
2549
2549
|
console.warn("URL sort is not compatible with the force filter.");
|
|
@@ -2587,7 +2587,7 @@
|
|
|
2587
2587
|
const [dataLoading, setDataLoading] = React.useState(false);
|
|
2588
2588
|
const [dataLoadingError, setDataLoadingError] = React.useState();
|
|
2589
2589
|
const [noMoreToLoad, setNoMoreToLoad] = React.useState(false);
|
|
2590
|
-
const clearFilter = React.useCallback(() => setFilterValues(fixedFilter ?? void 0), [fixedFilter]);
|
|
2590
|
+
const clearFilter = React.useCallback(() => setFilterValues(fixedFilter ?? defaultFilter ?? void 0), [fixedFilter, defaultFilter]);
|
|
2591
2591
|
const updateFilterValues = React.useCallback((updatedFilter) => {
|
|
2592
2592
|
if (fixedFilter) {
|
|
2593
2593
|
console.warn("Filter is not compatible with the force filter. Ignoring filter");
|