feat: version tag (#14949)

This commit is contained in:
Wu Tianwei 2025-03-07 18:10:40 +08:00 • committed by GitHub
commit 3ca1373274
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 1695 additions and 423 deletions

View file

@ -13,3 +13,14 @@ export const useInvalid = (key: QueryKey) => {
)
}
}
export const useReset = (key: QueryKey) => {
const queryClient = useQueryClient()
return () => {
queryClient.resetQueries(
{
queryKey: key,
},
)
}
}