Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- array
- npm에러
- 배열중복요소제거
- interface
- extends
- mainapplication.kt
- 상속
- Filter
- reactnative error
- map
- 이진탐색
- 슬라이딩윈도우
- Spring
- set
- TS
- app:compiledebugkotlin
- 타입스크립트
- reactnative
- 스크롤이벤트
- react
- 리액트네이티브아이콘
- javascript
- Next.js
- generic
- materialicons
- forwardref type
- app.post
- 안드로이드빌드에러
- err_connection_refused
- async
Archives
- Today
- Total
목록useinfinitequery (1)
rhanziy
React Native - useInfiniteQuery 파라미터 여러개 넘기기
why ? 가게 전체 상품에 대한 리뷰를 가져올때 reviews/{ storeId } 로 데이터를 요청하잖아요?? 근데 useInfiniteQuery 공식문서에는 암만 찾아봐도 fetchApi 함수에 파라미터 여러개 넘기는 방법이 없어서 찾아봄. 🔽 이게 공식문서 const { fetchNextPage, fetchPreviousPage, hasNextPage, hasPreviousPage, isFetchingNextPage, isFetchingPreviousPage, ...result } = useInfiniteQuery({ queryKey, queryFn: ({ pageParam = 1 }) => fetchPage(pageParam), ...options, getNextPageParam: (lastPa..
React Native
2023. 11. 23. 21:50