/use-special-effect

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

Primary LanguageTypeScript

use-special-effect 🪄

Version

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

Install

npm install --save use-special-effect

Or if you use Yarn:

yarn add use-special-effect

Documentation following soon