Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
chore: add ReactQuery devtools
Browse files Browse the repository at this point in the history
to be removed
  • Loading branch information
Clumsy-Coder committed Dec 31, 2023
1 parent 0a3dac9 commit 5bb70f5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-slot": "^1.0.2",
"@tanstack/react-query": "^5.15.5",
"@tanstack/react-query-devtools": "^5.15.5",
"axios": "^1.6.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
Expand Down
2 changes: 2 additions & 0 deletions src/provider/ReactQuery.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";

import { QueryClientProvider, QueryClient } from "@tanstack/react-query";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { PropsWithChildren, useState } from "react";

const ReactQueryProvider = ({ children }: PropsWithChildren) => {
Expand All @@ -9,6 +10,7 @@ const ReactQueryProvider = ({ children }: PropsWithChildren) => {
return (
<QueryClientProvider client={queryClient}>
{children}
<ReactQueryDevtools initialIsOpen={false} />
</QueryClientProvider>
);
};
Expand Down

0 comments on commit 5bb70f5

Please sign in to comment.