ywana-core8 0.0.767 → 0.0.768

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.cjs CHANGED
@@ -10420,30 +10420,9 @@ var CollectionContextProvider = function CollectionContextProvider(props) {
10420
10420
  setSelected = _useState6[1];
10421
10421
 
10422
10422
  React.useEffect(function () {
10423
- try {
10424
- console.log("CONTEXT LOAD for Filters START", filters);
10425
- return Promise.resolve(load()).then(function () {
10426
- console.log("CONTEXT LOAD for Filters END", filters);
10427
- });
10428
- } catch (e) {
10429
- return Promise.reject(e);
10430
- }
10431
- }, [filters]);
10432
- React.useEffect(function () {
10433
- if (Object.keys(customFilters).length > 0) {
10434
- console.log("CONTEXT CustomFilters", customFilters);
10435
- filter();
10436
- }
10437
- }, [customFilters]);
10438
-
10439
- function filter() {
10440
- console.log("RUN CUSTOM FILTERS", customFilters);
10441
- var cfs = Object.values(customFilters);
10442
- var data = cfs.length ? cfs.reduce(function (acc, filter) {
10443
- return filter(acc);
10444
- }, all) : all;
10445
- return data;
10446
- }
10423
+ console.log("CONTEXT LOAD for Filters", filters, customFilters);
10424
+ load();
10425
+ }, [filters, customFilters]);
10447
10426
 
10448
10427
  function clearSelection() {
10449
10428
  setSelected(null);