Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
shadrach-tayo committed Sep 4, 2024
1 parent 16da570 commit a3923d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
14 changes: 1 addition & 13 deletions src/app/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
QueryClient,
QueryClientProvider,
} from "@tanstack/react-query";
import { PropsWithChildren, useState } from "react";
import { PropsWithChildren } from "react";

function makeQueryClient() {
return new QueryClient({
Expand Down Expand Up @@ -37,18 +37,6 @@ function getQueryClient() {
}

export default function Provider({ children }: PropsWithChildren<{}>) {
// const [queryClient] = useState(
// () =>
// new QueryClient({
// defaultOptions: {
// queries: {
// // With SSR, we usually want to set some default staleTime
// // above 0 to avoid refetching immediately on the client
// staleTime: 60 * 1000,
// },
// },
// })
// );
const queryClient = getQueryClient();
return (
<ThemeProvider
Expand Down
2 changes: 0 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ export const metadata: Metadata = {
description: "",
};

// const queryClient = new QueryClient();

export default function RootLayout({
children,
}: Readonly<{
Expand Down

0 comments on commit a3923d7

Please sign in to comment.