loading multiple component break the react query and throws an error 'QueryClient is not set'
using react router.
if remove the component <PerformanceConfig /> it start working but if add it start throwing an error,
how to configure react query so i can use react query within multiple component and do there data loading with in that component6 Replies
helpful-purple•3y ago
where is your QueryClientProvider located ?
like-goldOP•3y ago
main.tsx file
helpful-purple•3y ago
should work; show a reproduction please
like-goldOP•3y ago
@TkDodo 🔮 it throws an error when i import it from
import { useQuery } from "react-query"; but works fine import { QueryClient, useQuery } from "@tanstack/react-query";
🥲helpful-purple•3y ago
of course it does, they are different packages ...
like-goldOP•3y ago
ohh i see i installed both by mistake