The useQueryClient hook returns the current QueryClient instance.
useQueryClient
QueryClient
1 import { useQueryClient } from 'react-query'2 3 const queryClient = useQueryClient()
Fast track your learning and take the offical course ↗️
Your weekly dose of JavaScript news. Delivered every Monday to over 80,000 devs, for free.
No spam. Unsubscribe at any time.
The best JavaScript newsletter! Delivered every Monday to over 76,000 devs.
© 2020 Tanner Linsley. All rights reserved.