TanStack Query mutation
Await mutateAsync and let the application choose a single feedback owner.
This integration recipe is not installed in the docs app. Copy the pattern into a project with the named integration dependency.
save: {
run: async (input) => {
const saved = await mutation.mutateAsync(input)
await queryClient.invalidateQueries({ queryKey: ['profile'] })
return saved
},
feedback: 'none', // if the mutation already notifies
}