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 ↗️
The best JavaScript newsletter! Delivered every Monday to over 76,000 devs.
No spam. Unsubscribe at any time.
© 2020 Tanner Linsley. All rights reserved.