chore: add missing file

pull/12372/head
Joel 2 years ago
parent 0d607a8c90
commit 3e314843db

@ -0,0 +1,13 @@
import {
useQueryClient,
} from '@tanstack/react-query'
export const useInvalid = (key: string[]) => {
const queryClient = useQueryClient()
return () => {
queryClient.invalidateQueries(
{
queryKey: key,
})
}
}
Loading…
Cancel
Save