const handleItemDateChange = useCallback(
(item: CropCharacteristic, newValue: string, positionArray: number) => {
dispatch(
updateCropCharacteristic({
...item,
cropStages: [
{
cropStageId: item.cropStages[positionArray].cropStageId,
cultureStageName: item.cropStages[positionArray].cultureStageName,
phaseNumber: item.cropStages[positionArray].phaseNumber,
stageEndDate: newValue,
stageStartDate: newValue,
},
],
}),
);
},
[dispatch],
);
Precisava passar nesse oChange, mais nao tenho ideia de como começar.