I want to update my setValidDate state with date that is coming from the item, but when I set the value right after the data got mapped I
setValidDate
date
item