React native, the useEffect on a object state not working
Here is the code before the render const HappyComponent = (props) => { console.log(JSON.stringify(props)); // the props are ok const [HHDays, setHHDays] = useState(null); useEffect(() => { const hours = props.infos.happy ? { allWeek: { from: props.infos.ending, to: props.infos.strating, showPickerFrom:…