Skip to content

Commit

Permalink
fix: mainCache's watch
Browse files Browse the repository at this point in the history
  • Loading branch information
phphe committed Feb 7, 2024
1 parent 6d4321b commit abe46c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/VirtualList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const VirtualList = forwardRef(function <ITEM>(
}
const visible = visibleIndices.map(i => props.items[i])
return { visible, visibleIndices, topSpace, bottomSpace, totalSpace }
}, [itemSize, count, scrollTop, buffer, listSize, props.virtual, props.persistentIndices]);
}, [props.items, itemSize, count, scrollTop, buffer, listSize, props.virtual, props.persistentIndices]);
const { visible, visibleIndices, topSpace, bottomSpace, totalSpace } = mainCache

//
Expand Down

0 comments on commit abe46c3

Please sign in to comment.