Special version of React's useEffect hook, which allows
(1) defining which dependency changes should trigger the effect and
(2) accessing both old + new values during effect run
npm install --save use-special-effect
Or if you use Yarn:
yarn add use-special-effect