Skip to content

Commit 5d9061f

Browse files
authored
Update README.md
There was no loading var initialized, but it was used in the loadNextPage.
1 parent af7876e commit 5d9061f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import useInfiniteScroll from 'react-infinite-scroll-hook';
3131
function InfiniteList({}) {
3232
const [items, setItems] = useState([]);
3333
const [hasNextPage, setHasNextPage] = useState();
34+
const [loading, setLoading] = useState(false);
35+
3436

3537
/// ...
3638

0 commit comments

Comments
 (0)