import { useMutation, useQueryClient } from '@tanstack/vue-query'
import { execute } from './api'
export const queryKeys = { root: ['__MODULE__','__FEATURE__'] as const }
export function useExecuteMutation() { const client=useQueryClient(); return useMutation({ mutationFn: execute, onSuccess: async()=>client.invalidateQueries({queryKey:queryKeys.root}) }) }
