mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 19:59:21 +08:00
feat: version tag (#14949)
This commit is contained in:
@@ -13,3 +13,14 @@ export const useInvalid = (key: QueryKey) => {
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export const useReset = (key: QueryKey) => {
|
||||
const queryClient = useQueryClient()
|
||||
return () => {
|
||||
queryClient.resetQueries(
|
||||
{
|
||||
queryKey: key,
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user