mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-17 06:29:38 +02:00
Add mutationKey everywhere
This commit is contained in:
@@ -7,6 +7,7 @@ export function useDeleteRequest(id: string | null) {
|
||||
const deleteAnyGrpcRequest = useDeleteAnyGrpcRequest();
|
||||
|
||||
return useMutation<void, string>({
|
||||
mutationKey: ['delete_request', id],
|
||||
mutationFn: async () => {
|
||||
if (id == null) return;
|
||||
// We don't know what type it is based on the ID, so just try deleting both
|
||||
|
||||
Reference in New Issue
Block a user