@infinite-table/infinite-react 0.2.19 → 0.2.20
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/index.esm.js +8 -4
- package/index.js +8 -4
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -3667,9 +3667,13 @@ function loadData(data, componentState, actions, overrides) {
|
|
|
3667
3667
|
}
|
|
3668
3668
|
currentGroupRowInfo.items.length = currentGroupRowInfo.totalCount;
|
|
3669
3669
|
const start = (_c = dataParams.lazyLoadStartIndex) != null ? _c : 0;
|
|
3670
|
-
const end = Math.min((_d = remoteData.totalCount) != null ? _d : start + dataParams.lazyLoadBatchSize);
|
|
3670
|
+
const end = Math.min((_d = remoteData.totalCount) != null ? _d : dataArray.length, start + dataParams.lazyLoadBatchSize);
|
|
3671
3671
|
for (let i = start; i < end; i++) {
|
|
3672
|
-
|
|
3672
|
+
const it = newGroupRowInfo.items[i - start];
|
|
3673
|
+
if (!it) {
|
|
3674
|
+
throw `lazily loaded item not found at index ${i - start}`;
|
|
3675
|
+
}
|
|
3676
|
+
currentGroupRowInfo.items[i] = it;
|
|
3673
3677
|
}
|
|
3674
3678
|
if (!existingGroupRowInfo) {
|
|
3675
3679
|
lazyGroupData.set(key, currentGroupRowInfo);
|
|
@@ -3784,7 +3788,7 @@ function useLazyLoadRange() {
|
|
|
3784
3788
|
} = useComponentState();
|
|
3785
3789
|
const loadingCache = useMemo4(() => {
|
|
3786
3790
|
return new Map();
|
|
3787
|
-
}, [componentState.data]);
|
|
3791
|
+
}, [componentState.data, componentState.dataParams]);
|
|
3788
3792
|
const {
|
|
3789
3793
|
lazyLoadBatchSize,
|
|
3790
3794
|
notifyRenderRangeChange,
|
|
@@ -8024,7 +8028,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
8024
8028
|
const valid = useMemo12(() => {
|
|
8025
8029
|
let valid2 = isValidLicense(licenseKey, {
|
|
8026
8030
|
publishedAt: 1624970570587,
|
|
8027
|
-
version: "0.2.
|
|
8031
|
+
version: "0.2.20"
|
|
8028
8032
|
});
|
|
8029
8033
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
8030
8034
|
return true;
|
package/index.js
CHANGED
|
@@ -3656,9 +3656,13 @@ function loadData(data, componentState, actions, overrides) {
|
|
|
3656
3656
|
}
|
|
3657
3657
|
currentGroupRowInfo.items.length = currentGroupRowInfo.totalCount;
|
|
3658
3658
|
const start = (_c = dataParams.lazyLoadStartIndex) != null ? _c : 0;
|
|
3659
|
-
const end = Math.min((_d = remoteData.totalCount) != null ? _d : start + dataParams.lazyLoadBatchSize);
|
|
3659
|
+
const end = Math.min((_d = remoteData.totalCount) != null ? _d : dataArray.length, start + dataParams.lazyLoadBatchSize);
|
|
3660
3660
|
for (let i = start; i < end; i++) {
|
|
3661
|
-
|
|
3661
|
+
const it = newGroupRowInfo.items[i - start];
|
|
3662
|
+
if (!it) {
|
|
3663
|
+
throw `lazily loaded item not found at index ${i - start}`;
|
|
3664
|
+
}
|
|
3665
|
+
currentGroupRowInfo.items[i] = it;
|
|
3662
3666
|
}
|
|
3663
3667
|
if (!existingGroupRowInfo) {
|
|
3664
3668
|
lazyGroupData.set(key, currentGroupRowInfo);
|
|
@@ -3773,7 +3777,7 @@ function useLazyLoadRange() {
|
|
|
3773
3777
|
} = useComponentState();
|
|
3774
3778
|
const loadingCache = (0, import_react16.useMemo)(() => {
|
|
3775
3779
|
return new Map();
|
|
3776
|
-
}, [componentState.data]);
|
|
3780
|
+
}, [componentState.data, componentState.dataParams]);
|
|
3777
3781
|
const {
|
|
3778
3782
|
lazyLoadBatchSize,
|
|
3779
3783
|
notifyRenderRangeChange,
|
|
@@ -7932,7 +7936,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
7932
7936
|
const valid = (0, import_react44.useMemo)(() => {
|
|
7933
7937
|
let valid2 = isValidLicense(licenseKey, {
|
|
7934
7938
|
publishedAt: 1624970570587,
|
|
7935
|
-
version: "0.2.
|
|
7939
|
+
version: "0.2.20"
|
|
7936
7940
|
});
|
|
7937
7941
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
7938
7942
|
return true;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infinite-table/infinite-react",
|
|
3
3
|
"description": "Infinite Table for React",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.20",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.esm.js",
|
|
7
7
|
"typings": "index.d.ts",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
},
|
|
15
15
|
"license": "Commercial & Open Source",
|
|
16
16
|
"//": "will be updated at build time",
|
|
17
|
-
"publishedAt":
|
|
17
|
+
"publishedAt": 1649171966292
|
|
18
18
|
}
|