I have one useEffect:
useEffect(() => {
console.log('callin')
}, [data])
This data we are setting through one API. When I am trying to call this API again, I am getting the same data and updating the data with setState again. In that case the console.log() is not getting printed means this useEffect is not getting called again.
Can anyone help me with this?