@legendapp/list 0.6.1 → 0.6.2
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.js +4 -0
- package/index.mjs +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1011,6 +1011,10 @@ var LegendListInner = React4.forwardRef(function LegendListInner2(props, forward
|
|
|
1011
1011
|
}
|
|
1012
1012
|
addTotalSize(null, totalSize, totalSizeBelowIndex);
|
|
1013
1013
|
if (!isFirst) {
|
|
1014
|
+
if (data.length > refState.current.data.length) {
|
|
1015
|
+
refState.current.isEndReached = false;
|
|
1016
|
+
}
|
|
1017
|
+
refState.current.data = data;
|
|
1014
1018
|
const numContainers = peek$(ctx, "numContainers");
|
|
1015
1019
|
for (let i = 0; i < numContainers; i++) {
|
|
1016
1020
|
const itemKey = peek$(ctx, `containerItemKey${i}`);
|
package/index.mjs
CHANGED
|
@@ -990,6 +990,10 @@ var LegendListInner = forwardRef(function LegendListInner2(props, forwardedRef)
|
|
|
990
990
|
}
|
|
991
991
|
addTotalSize(null, totalSize, totalSizeBelowIndex);
|
|
992
992
|
if (!isFirst) {
|
|
993
|
+
if (data.length > refState.current.data.length) {
|
|
994
|
+
refState.current.isEndReached = false;
|
|
995
|
+
}
|
|
996
|
+
refState.current.data = data;
|
|
993
997
|
const numContainers = peek$(ctx, "numContainers");
|
|
994
998
|
for (let i = 0; i < numContainers; i++) {
|
|
995
999
|
const itemKey = peek$(ctx, `containerItemKey${i}`);
|