mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-25 02:41:07 +01:00
Add mutationKey everywhere
This commit is contained in:
@@ -14,6 +14,7 @@ export function useSendAnyRequest(options: { download?: boolean } = {}) {
|
||||
const alert = useAlert();
|
||||
const { activeCookieJar } = useActiveCookieJar();
|
||||
return useMutation<HttpResponse | null, string, string | null>({
|
||||
mutationKey: ['send_any_request'],
|
||||
mutationFn: async (id) => {
|
||||
const request = await getHttpRequest(id);
|
||||
if (request == null) {
|
||||
|
||||
Reference in New Issue
Block a user