I have component which receive some props, I've realized the component renders at unwanted times and cases
So I checked each props explicitly with simple UseEffect hook to find if props are really changed and causes the re-Render.
Indeed, some props is 'changing' when clicking on some buttons, the problem is the props not really changing and even if I put mock data inside the props (propsName={10}), the useEffect hook 'thinks' that the prop is changed.
This is the useEffect hook I've used:
UseEffect(() => {
console.log(`prop has changed', propName)
}, [propName])
What could be the problem, Why it looks like the props changed even if it's not really changes?