summaryrefslogtreecommitdiff
path: root/src/common/contexts/QueryProvider.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/contexts/QueryProvider.tsx')
-rw-r--r--src/common/contexts/QueryProvider.tsx20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/common/contexts/QueryProvider.tsx b/src/common/contexts/QueryProvider.tsx
new file mode 100644
index 0000000..1d6a948
--- /dev/null
+++ b/src/common/contexts/QueryProvider.tsx
@@ -0,0 +1,20 @@
+"use client";
+
+import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
+import React from 'react'
+
+type Props = {
+ children: React.ReactNode
+}
+
+const queryClient = new QueryClient()
+
+const QueryProvider = ({ children }: Props) => {
+ return (
+ <QueryClientProvider client={queryClient}>
+ {children}
+ </QueryClientProvider>
+ )
+}
+
+export default QueryProvider \ No newline at end of file