I need to return the updated state data with PUT response :
const put = async (url: string, data: any) => {
const client = ClientAPI.getInstance();
const resource = client.go(url);
return await resource.put({ data });
};
but getting undefined.
could you please help me to get the updated respone from the PUT request