Typesafe routing and CM line height issue

This commit is contained in:
Gregory Schier
2023-03-20 16:47:36 -07:00
parent d310272d19
commit dc97b91a4e
20 changed files with 202 additions and 77 deletions

View File

@@ -0,0 +1,11 @@
import { useMutation } from '@tanstack/react-query';
import { invoke } from '@tauri-apps/api';
export function useDeleteResponse(id: string | null) {
return useMutation({
mutationFn: async () => {
if (id === null) return;
await invoke('delete_response', { id: id });
},
});
}