I have problem understanding this piece of code. How i can pass the id and data ?
function usePutCompany(id) {
const [putCompany] = useMutation<any, any, any>(
(data) => ApiCall.Company.put(id, data),
{
onSuccess() {
queryCache.invalidateQueries('company')
queryCache.refetchQueries('company')
},
throwOnError: true,
},
)
return putCompany
}