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 3fd71b3 commit 81f05d1Copy full SHA for 81f05d1
README.md
@@ -63,7 +63,7 @@ function SimpleInfiniteList() {
63
{loading && <ListItem>Loading...</ListItem>}
64
and leave "Loading" without this ref.
65
*/}
66
- {hasNextPage && (
+ {(loading || hasNextPage) && (
67
<ListItem ref={infiniteRef}>
68
<Loading />
69
</ListItem>
@@ -96,7 +96,7 @@ function InfiniteListWithVerticalScroll() {
96
{items.map((item) => (
97
<ListItem key={item.key}>{item.value}</ListItem>
98
))}
99
100
101
102
0 commit comments