Skip to content

Commit

Permalink
fix: remove unnecessary patch for React-Query
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmoschini committed Apr 14, 2022
1 parent 77574f9 commit 786771a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReactNode, StrictMode } from "react";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import "./index.css";
Expand All @@ -20,16 +20,6 @@ appSessionStateMonitor.start();

const queryClient = new QueryClient();

// Temporal solution to patch react-query:
// https://github.com/tannerlinsley/react-query/issues/3476#issuecomment-1092424508
// Anyway, it does not seems to be a good idea:
// https://github.com/tannerlinsley/react-query/issues/3476#issuecomment-1092501739
declare module "react-query/types/react/QueryClientProvider" {
interface QueryClientProviderProps {
children?: ReactNode;
}
}

const container = document.getElementById(
appServices.appConfiguration.appElementId
);
Expand Down

0 comments on commit 786771a

Please sign in to comment.