Skip to content

Commit 4f38da4

Browse files
committed
fix: Here we go!
1 parent a475371 commit 4f38da4

File tree

153 files changed

+2725
-17526
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+2725
-17526
lines changed

docs/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/README.md

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const {
1616
scrollToOffset,
1717
} = useVirtual({
1818
size,
19-
parentRef,
19+
getScrollElement: () => parentRef.current
2020
estimateSize,
2121
overscan,
2222
horizontal,

docs/config.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"docSearch": {
3+
"appId": "",
4+
"indexName": "",
5+
"apiKey": ""
6+
},
7+
"menu": [
8+
{
9+
"label": "Adapters",
10+
"children": [
11+
{ "label": "React Virtual", "to": "adapters/react-virtual" },
12+
{ "label": "Solid Virtual", "to": "adapters/solid-virtual" },
13+
{ "label": "Svelte Virtual", "to": "adapters/svelte-virtual" },
14+
{ "label": "Vue Virtual", "to": "adapters/vue-virtual" }
15+
]
16+
},
17+
{
18+
"label": "Guide",
19+
"children": [
20+
{ "label": "Introduction", "to": "guide/00-introduction" },
21+
{ "label": "Installation", "to": "guide/01-installation" },
22+
{ "label": "Virtualization", "to": "guide/02-virtualization" }
23+
]
24+
},
25+
{
26+
"label": "Core APIs",
27+
"children": [{ "label": "Virtualizer", "to": "api/core/table" }]
28+
},
29+
{
30+
"label": "React Examples",
31+
"children": [
32+
{ "to": "examples/react/fixed", "label": "Fixed" },
33+
{ "to": "examples/react/variable", "label": "Variable" },
34+
{ "to": "examples/react/dynamic", "label": "Dynamic" },
35+
{ "to": "examples/react/padding", "label": "Padding" },
36+
{ "to": "examples/react/sticky", "label": "Sticky" },
37+
{ "to": "examples/react/infinite-scroll", "label": "Infinite Scroll" },
38+
{ "to": "examples/react/smooth-scroll", "label": "Smooth Scroll" }
39+
]
40+
},
41+
{
42+
"label": "Solid Examples",
43+
"children": [{ "to": "", "label": "Coming Soon!" }]
44+
},
45+
{
46+
"label": "Svelte Examples",
47+
"children": [{ "to": "", "label": "Coming Soon!" }]
48+
},
49+
{
50+
"label": "Vue Examples",
51+
"children": [{ "to": "", "label": "Coming Soon!" }]
52+
}
53+
]
54+
}
File renamed without changes.

docs/jsconfig.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/next.config.js

Lines changed: 0 additions & 106 deletions
This file was deleted.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ function RowVirtualizerFixed() {
1818
const parentRef = React.useRef()
1919

2020
const rowVirtualizer = useVirtual({
21-
size: 10000,
22-
parentRef,
21+
count: 10000,
22+
getScrollElement: () => parentRef.current
2323
estimateSize: React.useCallback(() => 35, []),
2424
})
2525

@@ -37,12 +37,12 @@ function RowVirtualizerFixed() {
3737
<div
3838
className="ListInner"
3939
style={{
40-
height: `${rowVirtualizer.totalSize}px`,
40+
height: `${rowVirtualizer.getTotalSize()}px`,
4141
width: '100%',
4242
position: 'relative',
4343
}}
4444
>
45-
{rowVirtualizer.virtualItems.map(virtualRow => (
45+
{rowVirtualizer.getVirtualItems().map((virtualRow) => (
4646
<div
4747
key={virtualRow.index}
4848
className={virtualRow.index % 2 ? 'ListItemOdd' : 'ListItemEven'}

docs/package.json

Lines changed: 0 additions & 83 deletions
This file was deleted.

docs/postcss.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)