일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 투포인터
- map
- RTK Query
- ESlint
- CORS
- 결정 알고리즘
- 리터럴 타입
- Cypress
- SSR
- 타입 좁히기
- 인터섹션
- autosize
- 공변성
- 태그된 유니온
- webpack
- 이분 검색
- useAppDispatch
- app router
- 호이스팅
- 무한 스크롤
- React
- async/await
- Jest
- TS
- recoil
- CI/CD
- Promise
- 반공변성
- dfs
- tailwind
Archives
- Today
- Total
목록useInfiniteQuery (1)
짧은코딩
무한 스크롤
리액트 쿼리에서 무한 스크롤을 구현하려면 useInfiniteQuery를 사용하면 된다. 전체 wrapper 컴포넌트로는 react-infinite-scroller 라이브러리의 InfiniteScroll를 사용하면 된다. -react-infinite-scroller의 npm 사이트 https://www.npmjs.com/package/react-infinite-scroller react-infinite-scroller Infinite scroll component for React in ES6. Latest version: 1.2.6, last published: a year ago. Start using react-infinite-scroller in your project by running `npm..
인프런, 유데미/React-Query
2023. 3. 31. 21:55