Special version of React's useEffect hook, which allows (1) defining which dependency changes should trigger the effect + (2) accessing both old + new values during effect run