🧩 Added react-query query to qBittorrentSettings page

This commit is contained in:
2023-10-30 19:52:58 -04:00
parent d45c53dff9
commit 2a6eeaf943
3 changed files with 55 additions and 21 deletions

View File

@@ -24,11 +24,6 @@ import {
LS_SINGLE_IMPORT,
} from "../constants/action-types";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
const queryClient = new QueryClient({});
/**
* Method that initializes an AirDC++ socket connection
* 1. Initializes event listeners for download init, tick and complete events
@@ -118,11 +113,10 @@ export const App = (): ReactElement => {
// }
// }, []);
return (
<QueryClientProvider client={queryClient}>
<>
{/* The rest of your application */}
<ReactQueryDevtools initialIsOpen={true} />
{/* <AirDCPPSocketComponent /> */};
</QueryClientProvider>
</>
);
};