first commit
This commit is contained in:
1 parent
b27f4f2f23
commit
db10146ecd
58 files changed
+3684
-202
No files matched your search
@@ -0,0 +1,29 @@
|
||||
'use client'
|
||||
|
||||
import {
|
||||
useQuery,
|
||||
useMutation,
|
||||
useQueryClient,
|
||||
QueryClient,
|
||||
QueryClientProvider,
|
||||
} from '@tanstack/react-query'
|
||||
|
||||
import axiosInstance from '@/axios/axiosInstance';
|
||||
import { useSelector, useDispatch } from 'react-redux'
|
||||
import { RootState } from "@/app/redux/store"
|
||||
import { addAllToCars } from '@/app/redux/features/cartSlice';
|
||||
|
||||
const queryClient = new QueryClient()
|
||||
|
||||
const ReactQueryProvider = ({children} : {children: React.ReactNode})=>{
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
{ children }
|
||||
</QueryClientProvider>
|
||||
)
|
||||
}
|
||||
|
||||
export default ReactQueryProvider
|
||||
Reference in new issue
Block a user