Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
IronKinoko authored Jul 1, 2021
1 parent 404da75 commit 6dec716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/src/useVirtualList/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default <T = any>(list: T[], options: OptionType) => {

useEffect(() => {
calculateRange();
}, [size.width, size.height]);
}, [size.width, size.height, list.length]);

const totalHeight = useMemo(() => {
if (typeof itemHeight === 'number') {
Expand Down

0 comments on commit 6dec716

Please sign in to comment.