@candidstartup/react-virtual-scroll 0.4.0 → 0.6.0
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/README.md +2 -2
- package/dist/index.d.ts +590 -61
- package/dist/index.js +392 -117
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Most of the logic is implemented by custom hooks that are used by both `VirtualL
|
|
|
23
23
|
import { VirtualList, useVariableSizeItemOffsetMapping } from '@candidstartup/react-virtual-scroll';
|
|
24
24
|
|
|
25
25
|
const mapping = useVariableSizeItemOffsetMapping(30, [50]);
|
|
26
|
-
const list = React.
|
|
26
|
+
const list = React.useRef(null);
|
|
27
27
|
|
|
28
28
|
...
|
|
29
29
|
|
|
@@ -46,7 +46,7 @@ import { VirtualList, useVariableSizeItemOffsetMapping, useFixedSizeItemOffsetMa
|
|
|
46
46
|
|
|
47
47
|
const rowMapping = useVariableSizeItemOffsetMapping(30, [50]);
|
|
48
48
|
const columnMapping = useFixedSizeItemOffsetMapping(280);
|
|
49
|
-
const grid = React.
|
|
49
|
+
const grid = React.useRef(null);
|
|
50
50
|
|
|
51
51
|
...
|
|
52
52
|
|