일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- transition
- 문제해결
- parent padding
- createPortal
- debouncing
- ?? #null병합연산자
- 부모요소의 패딩 무시
- accordian
- ㅡ
- 리액트
- es6
- 제어컴포넌트
- 함수형프로그래밍
- Carousel
- twoarrow
- 서초구보건소 #무료CPR교육
- 화살표2개
- react
- DOM
- vite
- QueryClient
- tailwindCSS
- BlockFormattingContext
- useQueryClient
- 부모패딩
- ignore padding
- BFC
- CustomHook
- 조건부스타일
- alias설정
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