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 +3 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -24
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -24
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain2/CollectionContext.js +3 -18
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
|
-
|
10424
|
-
|
10425
|
-
|
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);
|