Skip to content

Commit

Permalink
#12 Add useInfinite
Browse files Browse the repository at this point in the history
  • Loading branch information
limyeonsang committed Jul 7, 2022
1 parent 2b5b8c6 commit 23c86a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"next": "12.1.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-intersection-observer": "^9.3.5",
"react-query": "^3.39.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion pages/myPage/videoLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const VideoLayoutContainer = () => {
[queryKey.myQuestion],
getQuestionVideos,
{
getNextPageParam: () => true,
getNextPageParam: (lastPage) => lastPage.data.id + 1,
},
);
};
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1891,6 +1891,11 @@ [email protected]:
loose-envify "^1.1.0"
scheduler "^0.23.0"

react-intersection-observer@^9.3.5:
version "9.3.5"
resolved "https://registry.yarnpkg.com/react-intersection-observer/-/react-intersection-observer-9.3.5.tgz#df97584c1ef1549a47d4af6380db2fb4b76d7bba"
integrity sha512-TiJXVUapzAaIrZCAMBLjyWvwGYNGm0Xpkcwm3NY23b9PsJEBavul0hRFmrwc/LOmBUA/8TlkjCj7lCvjM0q1Hg==

react-is@^16.13.1, react-is@^16.7.0:
version "16.13.1"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
Expand Down

0 comments on commit 23c86a9

Please sign in to comment.