Skip to content

Commit

Permalink
fix: set limit to 15
Browse files Browse the repository at this point in the history
  • Loading branch information
okorie2 committed Oct 24, 2023
1 parent 1ff39da commit c972550
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function DatasetsGrid(props: Props) {
const [cardId, setCardId] = React.useState<string>("");
const [enableButton, setEnableButton] = React.useState<boolean>(false);
const [modalDisplay, setModalDisplay] = React.useState<boolean>(false);
const limit = 3;
const limit = 15;
//used over usestate to get current offset value in the IntersectionObserver api, as it is not updated in usestate.
const [offset, setOffset] = React.useState(0);
const { isObserved } = useInfinityScroll(observerTarget);
Expand Down

0 comments on commit c972550

Please sign in to comment.