Uncaught Error: No QueryClient set, use QueryClientProvider to set one

Rmag Breaking News

Hello and welcome!

If you encounter an error while using @tanstack/react-query in your React Vite project, there’s no need to panic.
Check your imports related to React Query.

You might be using:

import { useQuery } from ‘react-query’;

Instead of:

import { useQuery } from ‘@tanstack/react-query’;

YouTube @catwebdev

Thank you for reading.
See you in the next one!

Leave a Reply

Your email address will not be published. Required fields are marked *