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
- State
- swipe
- raspberrypi
- localStorage
- react-query
- 러닝타입스크립트
- useEffect
- Router
- useParams
- nvidia
- Ajax
- 딥러닝
- 공부
- axios
- IOT
- ContextAPI
- props
- Component
- 정렬
- DOM
- opencv
- image
- Redux
- CSS
- 자율주행
- HTML
- JavaScript
- react
- TypeScript
- route
Archives
- Today
- Total
목록react-query (1)
개발일지
react-query
- 몇 초마다 자동으로 데이터 다시 가져오기 - 요청 실패 시 몇 초 간격으로 재시도 - 다음 페이지 미리 가져오기 - ajax 성공 / 실패 시 각각 다른 화면 보여주기 ajax 요청하다가 보면 위와같은 기능들 필요하다 react-query 사용하면 더욱 편리하다 실시간 데이터 보여주어야 하는 사이트들에서 유용 react-query 설치 세팅 터미널에 npm install react-query 작성 index.js 파일에서 import { QueryClient, QueryClientProvider } from "react-query" //1번 const queryClient = new QueryClient() //2번 const root = ReactDOM.createRoot(document.getEl..
React
2023. 3. 9. 20:57