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