일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 부모요소의 패딩 무시
- createPortal
- CustomHook
- ignore padding
- QueryClient
- 부모패딩
- BFC
- Carousel
- twoarrow
- 함수형프로그래밍
- transition
- parent padding
- react
- vite
- accordian
- 문제해결
- ?? #null병합연산자
- 이즐 #ezl #욕나오는 #교통카드
- 리액트
- 제어컴포넌트
- tailwindCSS
- es6
- DOM
- debouncing
- 조건부스타일
- alias설정
- useQueryClient
- 서초구보건소 #무료CPR교육
- BlockFormattingContext
- 화살표2개
Archives
- Today
- Total
목록useQueryClient (1)
프론트엔드 첫걸음
QueryClient 대신 useQueryClient 사용하는 이유
[출처] https://stackoverflow.com/questions/71540973/why-use-usequeryclient-from-react-query-library https://tkdodo.eu/blog/react-query-fa-qs#why-should-i-usequeryclient QueryClientProvider는 생성된 queryClient 를 React Context에 넣어 앱 전체에 배포한다. useQueryClient로 가장 잘 읽을 수 있다. 이렇게 하면 추가 구독이 생성되지 않으며 추가 재렌더링이 발생하지 않는다(클라이언트가 안정적인 경우). //클라이언트가 안정적인 경우 export default function App() { // ✅ this is stable const..
개발 공부/React
2023. 2. 20. 22:02