mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-18 23:09:47 +02:00
Refactor desktop app into separate client and proxy apps
This commit is contained in:
9
apps/yaak-client/hooks/useCancelHttpResponse.ts
Normal file
9
apps/yaak-client/hooks/useCancelHttpResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { event } from '@tauri-apps/api';
|
||||
import { useFastMutation } from './useFastMutation';
|
||||
|
||||
export function useCancelHttpResponse(id: string | null) {
|
||||
return useFastMutation<void>({
|
||||
mutationKey: ['cancel_http_response', id],
|
||||
mutationFn: () => event.emit(`cancel_http_response_${id}`),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user