mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-28 03:37:02 +02:00
Add mutationKey everywhere
This commit is contained in:
@@ -6,6 +6,7 @@ import { grpcConnectionsQueryKey } from './useGrpcConnections';
|
||||
export function useDeleteGrpcConnections(requestId?: string) {
|
||||
const queryClient = useQueryClient();
|
||||
return useMutation({
|
||||
mutationKey: ['delete_grpc_connections', requestId],
|
||||
mutationFn: async () => {
|
||||
if (requestId === undefined) return;
|
||||
await invokeCmd('cmd_delete_all_grpc_connections', { requestId });
|
||||
|
||||
Reference in New Issue
Block a user