79442876

Date: 2025-02-16 09:30:09
Score: 0.5
Natty:
Report link

the problem was with the following code:

    [`onDelete${toCapital(dataSourceName)}`]: onDelete,
    [`onPut${toCapital(dataSourceName)}`]: onPut,
    [`onPost${toCapital(dataSourceName)}`]: onPost,

which causes the loss of the signature, so sending back the props as it is and changing that part of the code as follows:

const dataSourceProps = {
    dataSource,
    isLoading,
    onDelete,
    onPut,
    onPost,
  };
  return { ...dataSourceProps };
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mohammad Momtaz