@micromag/data 0.3.341 → 0.3.343
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 +2 -2
- package/lib/index.js +2 -2
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -769,13 +769,13 @@ var useItems = function useItems(_ref) {
|
|
|
769
769
|
}, [getPages, setItems, setPagination]);
|
|
770
770
|
useEffect(function () {
|
|
771
771
|
// eslint-disable-next-line
|
|
772
|
-
console.log('try to load');
|
|
772
|
+
// console.log('try to load');
|
|
773
773
|
if (!canLoad || loading || lastPage !== null && pageNumber > lastPage) {
|
|
774
774
|
// console.log('skips loading');
|
|
775
775
|
return;
|
|
776
776
|
}
|
|
777
777
|
// eslint-disable-next-line
|
|
778
|
-
console.log('actually load', canLoad, loading, lastPage, pageNumber);
|
|
778
|
+
// console.log('actually load', canLoad, loading, lastPage, pageNumber);
|
|
779
779
|
setLoading(true);
|
|
780
780
|
setCanLoad(false);
|
|
781
781
|
// TODO: make this a cancellable promise
|
package/lib/index.js
CHANGED
|
@@ -787,13 +787,13 @@ var useItems = function useItems(_ref) {
|
|
|
787
787
|
}, [getPages, setItems, setPagination]);
|
|
788
788
|
React.useEffect(function () {
|
|
789
789
|
// eslint-disable-next-line
|
|
790
|
-
console.log('try to load');
|
|
790
|
+
// console.log('try to load');
|
|
791
791
|
if (!canLoad || loading || lastPage !== null && pageNumber > lastPage) {
|
|
792
792
|
// console.log('skips loading');
|
|
793
793
|
return;
|
|
794
794
|
}
|
|
795
795
|
// eslint-disable-next-line
|
|
796
|
-
console.log('actually load', canLoad, loading, lastPage, pageNumber);
|
|
796
|
+
// console.log('actually load', canLoad, loading, lastPage, pageNumber);
|
|
797
797
|
setLoading(true);
|
|
798
798
|
setCanLoad(false);
|
|
799
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.
|
|
3
|
+
"version": "0.3.343",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
52
|
"@folklore/fetch": "^0.1.15",
|
|
53
|
-
"@micromag/core": "^0.3.
|
|
53
|
+
"@micromag/core": "^0.3.343",
|
|
54
54
|
"lodash": "^4.17.21",
|
|
55
55
|
"prop-types": "^15.7.2",
|
|
56
56
|
"query-string": "^6.13.7",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "ad3917e5493d6fe07ea9cb2d35a1f0a560009b6c"
|
|
63
63
|
}
|