import { ReactNode, useState } from "react"; import { DehydratedState, Hydrate, QueryClient, QueryClientProvider, } from "react-query"; const Layout = ({ children, dehydratedState, }: { children: ReactNode; dehydratedState: DehydratedState; }) => { const [queryClient] = useState(() => new QueryClient()); return ( {children} ); }; export default Layout;