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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.767",
3
+ "version": "0.0.768",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -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
- if (Object.keys(customFilters).length > 0) {
29
- console.log("CONTEXT CustomFilters", customFilters)
30
- filter()
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) {