useEffect w/ setState in dependencies

The purpose of providing dependencies to useEffect is for it to listen for changes in those values and re-run the effect when something changes. In the example above, setSomeState is not changing, so it’s not necessary to include it in the dependency array.

Correct. In the given example, since setSomeState is not changing, it is not necessary to include it in the dependency array of useEffect.