@micromag/data 0.3.335 → 0.3.338

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/es/index.js CHANGED
@@ -768,12 +768,14 @@ var useItems = function useItems(_ref) {
768
768
  setPagination(initialPagination);
769
769
  }, [getPages, setItems, setPagination]);
770
770
  useEffect(function () {
771
- // console.log('try to load');
771
+ // eslint-disable-next-line
772
+ console.log('try to load');
772
773
  if (!canLoad || loading || lastPage !== null && pageNumber > lastPage) {
773
774
  // console.log('skips loading');
774
775
  return;
775
776
  }
776
- // console.log('actually load', query, pageNumber, pageCount);
777
+ // eslint-disable-next-line
778
+ console.log('actually load', canLoad, loading, lastPage, pageNumber);
777
779
  setLoading(true);
778
780
  setCanLoad(false);
779
781
  // TODO: make this a cancellable promise
package/lib/index.js CHANGED
@@ -786,12 +786,14 @@ var useItems = function useItems(_ref) {
786
786
  setPagination(initialPagination);
787
787
  }, [getPages, setItems, setPagination]);
788
788
  React.useEffect(function () {
789
- // console.log('try to load');
789
+ // eslint-disable-next-line
790
+ console.log('try to load');
790
791
  if (!canLoad || loading || lastPage !== null && pageNumber > lastPage) {
791
792
  // console.log('skips loading');
792
793
  return;
793
794
  }
794
- // console.log('actually load', query, pageNumber, pageCount);
795
+ // eslint-disable-next-line
796
+ console.log('actually load', canLoad, loading, lastPage, pageNumber);
795
797
  setLoading(true);
796
798
  setCanLoad(false);
797
799
  // TODO: make this a cancellable promise
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/data",
3
- "version": "0.3.335",
3
+ "version": "0.3.338",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "2d4617589f6091803cee6d5614c61297bba3bdc6"
62
+ "gitHead": "07fe87efa3938e96be918c8e568925414232742c"
63
63
  }