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/package.json
CHANGED
@@ -18,18 +18,10 @@ export const CollectionContextProvider = (props) => {
|
|
18
18
|
const [queries, setQueries] = useState([])
|
19
19
|
const [selected, setSelected] = useState(null)
|
20
20
|
|
21
|
-
useEffect(async () => {
|
22
|
-
console.log("CONTEXT LOAD for Filters START", filters)
|
23
|
-
await load()
|
24
|
-
console.log("CONTEXT LOAD for Filters END", filters)
|
25
|
-
}, [filters])
|
26
|
-
|
27
21
|
useEffect(() => {
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
}
|
32
|
-
}, [customFilters])
|
22
|
+
console.log("CONTEXT LOAD for Filters", filters, customFilters)
|
23
|
+
load()
|
24
|
+
}, [filters, customFilters])
|
33
25
|
|
34
26
|
async function load() {
|
35
27
|
|
@@ -49,13 +41,6 @@ export const CollectionContextProvider = (props) => {
|
|
49
41
|
}
|
50
42
|
return
|
51
43
|
}
|
52
|
-
|
53
|
-
function filter() {
|
54
|
-
console.log("RUN CUSTOM FILTERS", customFilters)
|
55
|
-
const cfs = Object.values(customFilters)
|
56
|
-
const data = cfs.length ? cfs.reduce((acc, filter) => filter(acc), all) : all;
|
57
|
-
return data
|
58
|
-
}
|
59
44
|
|
60
45
|
async function select(id) {
|
61
46
|
if (fetching) {
|