@firecms/core 3.0.0-canary.122 → 3.0.0-canary.123

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/index.umd.js CHANGED
@@ -10389,6 +10389,16 @@
10389
10389
  const pageSize = typeof collection.pagination === "number" ? collection.pagination : DEFAULT_PAGE_SIZE;
10390
10390
  const [searchString, setSearchString] = React.useState();
10391
10391
  const [itemCount, setItemCount] = React.useState(paginationEnabled ? pageSize : void 0);
10392
+ const checkFilterCombination = React.useCallback((filterValues2, sortBy2) => {
10393
+ if (!dataSource.isFilterCombinationValid)
10394
+ return true;
10395
+ return dataSource.isFilterCombinationValid({
10396
+ path: resolvedPath,
10397
+ collection,
10398
+ filterValues: filterValues2,
10399
+ sortBy: sortBy2
10400
+ });
10401
+ }, []);
10392
10402
  const initialSortInternal = React.useMemo(() => {
10393
10403
  if (initialSort && forceFilter && !checkFilterCombination(forceFilter, initialSort)) {
10394
10404
  console.warn("Initial sort is not compatible with the force filter. Ignoring initial sort");
@@ -10410,16 +10420,6 @@
10410
10420
  const [dataLoading, setDataLoading] = React.useState(false);
10411
10421
  const [dataLoadingError, setDataLoadingError] = React.useState();
10412
10422
  const [noMoreToLoad, setNoMoreToLoad] = React.useState(false);
10413
- const checkFilterCombination = React.useCallback((filterValues2, sortBy2) => {
10414
- if (!dataSource.isFilterCombinationValid)
10415
- return true;
10416
- return dataSource.isFilterCombinationValid({
10417
- path: resolvedPath,
10418
- collection,
10419
- filterValues: filterValues2,
10420
- sortBy: sortBy2
10421
- });
10422
- }, []);
10423
10423
  const clearFilter = React.useCallback(() => setFilterValues(forceFilter ?? void 0), [forceFilter]);
10424
10424
  const updateFilterValues = React.useCallback((updatedFilter) => {
10425
10425
  if (forceFilter) {