We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b3d36c commit 63b3b39Copy full SHA for 63b3b39
src/List.tsx
@@ -303,9 +303,11 @@ export function RawList<T>(props: ListProps<T>, ref: React.Ref<ListRef>) {
303
// ================================ Effect ================================
304
/** We need told outside that some list not rendered */
305
useLayoutEffect(() => {
306
- const renderList = mergedData.slice(start, end);
+ if (onVisibleChange) {
307
+ const renderList = mergedData.slice(start, end + 1);
308
- onVisibleChange?.(renderList, mergedData);
309
+ onVisibleChange(renderList, mergedData);
310
+ }
311
}, [start, end, mergedData]);
312
313
// ================================ Render ================================
0 commit comments