Why is the following giving me an infinite rerender? I have a small component with a single useEffect. Does the second param [currentData] do shallow c
useEffect
[currentData]