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 08f0fd4 commit 3c280cfCopy full SHA for 3c280cf
src/index.js
@@ -4,9 +4,11 @@ import useScroll from './useScroll'
4
import useRect from './useRect'
5
import useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect'
6
7
+const defaultEstimateSize = () => 50
8
+
9
export function useVirtual({
10
size = 0,
- estimateSize,
11
+ estimateSize = defaultEstimateSize,
12
overscan = 0,
13
parentRef,
14
horizontal,
0 commit comments