๐ค ์์งlog ๐ค
[REACT] No QueryClient set, use QueryClientProvider to set one(error) ๋ณธ๋ฌธ
๐ React
[REACT] No QueryClient set, use QueryClientProvider to set one(error)
Eun_zii 2023. 8. 24. 16:01
const App = () => {
const queryClient = new QueryClient();
return (
<QueryClientProvider client={queryClient}>
<Main />;
</QueryClientProvider>
);
};
react-query ์ฌ์ฉ์ App.ts ๋ฅผ ๊ฐ์ธ์ฃผ์ด์ผํ๋ค.
๐ QueryClientProvider ๋ก ๊ฐ์ธ์ฃผ์ง ์์์ ์๊ธฐ๋ ์ค๋ฅ ๐
728x90
'๐ React' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[REACT] ReactQuery (0) | 2023.08.24 |
---|---|
[REACT] Pagination ๊ตฌํํ๊ธฐ (0) | 2023.08.24 |
[REACT] useQuery ์ useMutation (0) | 2023.03.30 |
[REACT] ๋ฌดํ ์คํฌ๋กค (Infinite Scroll) ๊ตฌํํ๊ธฐ (0) | 2023.02.14 |
[REACT] CSS ๋ฐ์ํ ๋ ์ด์์ ๋๋น๋ฅผ ๋๋๋ ๊ธฐ์ค ์ ํ๊ธฐ (0) | 2023.02.10 |