File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ const queryClient = new QueryClient({
117117- QueryClient에서 모든 ` query ` 또는 ` mutation ` 에 기본 옵션을 추가할 수 있으며, 종류가 상당하기 때문에 공식 사이트를 참고해보자.
118118
119119``` jsx
120- import { QueryClient , QueryClientProvider } from ' @tanstack/react-query'
120+ import { QueryClient , QueryClientProvider } from ' @tanstack/react-query' ;
121121
122122const queryClient = new QueryClient ({ /* options */ });
123123
@@ -726,7 +726,7 @@ const DependantQueriesPage = ({ email }: Props) => {
726726 - [QueryClient](https://github.com/ssi02014/react-query-tutorial/tree/master/document/queryClient.md)
727727
728728` ` ` jsx
729- import { QueryClient } from " @tanstack/react-query" ;
729+ import { useQueryClient } from " @tanstack/react-query" ;
730730
731731const queryClient = useQueryClient ();
732732` ` `
@@ -805,7 +805,7 @@ useEffect(() => {
805805- react-query는 이러한 무한 쿼리를 지원하기 위해 useQuery의 유용한 버전인 ` useInfiniteQuery` 을 지원한다.
806806
807807` ` ` jsx
808- import { useInfiniteQuery } from ' @tanstack/react-query' v4
808+ import { useInfiniteQuery } from " @tanstack/react-query" ;
809809
810810const fetchColors = async ({ pageParam = 1 }) => {
811811 return await axios .get (
You can’t perform that action at this time.
0 commit comments