No QueryClient set, use QueryClientProvider to set one Nextjs new cli command error
No QueryClient set, use QueryClientProvider to set one Nextjs new cli command error
refine3. **Check your layout components**:
Ensure that any component using `useQueryClient` is a child of the `QueryClientProvider`. For example, if you have a layout component, it should be structured like this:4. **Refer to refine's Next.js example**:
If you are still facing issues, you can refer to the `with-nextjs` example provided by refine. You can clone this example to your local machine using the following command: