When passing new props to a functional component, it doesn't trigger a re-render in certain conditions.