const id, params, payload;
axios.put(`/vendors/${id}`, { ...payload, id }, { params }); // won't work
axios.put(`/vendors/${id}`, payload, { params: { ...params, id } }); // works, of course BE is RoR so values can be passed in body or query param
Not an axios issue. Payload should either be string (JSON.stringify) or FormData, can't be a mix. Axios accepts objects, but again, if FormData is involved, make sure it's passed as is as second param
Find a fix.