The live code example here : https://stackblitz.com/edit/ashok-reddy?file=muitable.tsx
The following code has issue where i need to set Api fetched data to nested array
await mutateAsync(
{ dataWithDisplayOrder },
{
onSuccess: (responseid: any) => {
// i got response as id
setResponseId(responseid);
// here restting the nestedArray
resetField('nestedArray');
// now here i'm passing this id to to fetch the saved details using useeffect
setResponseId(responseid);
**// here is my ask ???????
/// My asK here is how to set fetched data to nestedArray??? to display in UI**
},
onError: (error) => {},
}
);
};
how to set Api fetched data to nested Array??? to display in UI