From 8b1ca4cb47afb651ddc62bc1129dc71f526f6302 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Thu, 8 May 2025 08:02:27 -0700 Subject: [PATCH] Fix copy response body reference Closes https://feedback.yaak.app/p/copy-body-only-works-on-first-click --- src-web/hooks/useCopyHttpResponse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-web/hooks/useCopyHttpResponse.ts b/src-web/hooks/useCopyHttpResponse.ts index 2313d5fa..c5a5017f 100644 --- a/src-web/hooks/useCopyHttpResponse.ts +++ b/src-web/hooks/useCopyHttpResponse.ts @@ -6,7 +6,7 @@ import { getResponseBodyText } from '../lib/responseBody'; export function useCopyHttpResponse(response: HttpResponse) { const copy = useCopy(); return useFastMutation({ - mutationKey: ['copy_http_response'], + mutationKey: ['copy_http_response', response.id], async mutationFn() { const body = await getResponseBodyText(response); copy(body);