From 39f53e6ddf01b3f483735e7199db3431410a84e1 Mon Sep 17 00:00:00 2001 From: Daniel D Orlando Date: Sun, 2 Apr 2023 12:52:18 -0700 Subject: [PATCH] add QueryClientProvider to main --- client/src/main.jsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/client/src/main.jsx b/client/src/main.jsx index 8738dcf27f..b27ce94477 100644 --- a/client/src/main.jsx +++ b/client/src/main.jsx @@ -1,9 +1,6 @@ -import React from 'react'; import { createRoot } from 'react-dom/client'; -// import { Provider } from 'react-redux'; -// import { store } from './src/store'; import { RecoilRoot } from 'recoil'; - +import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { ThemeProvider } from './hooks/ThemeContext'; import App from './App'; import './style.css'; @@ -12,10 +9,14 @@ import './mobile.css'; const container = document.getElementById('root'); const root = createRoot(container); +const queryClient = new QueryClient(); + root.render( - - - - - + + + + + + + );