useEffect hook which takes a comparison function
npm install use-custom-compare-effectuseEffect hook which takes a comparison function instead of compare using reference equality (inspired by use-deep-compare-effect)
useCustomCompareEffect is you probably knowNote: This works best when you're generating code (let's say client side api for your backend) cause you know the exact shape of the data so you can also
generate cheap compare functions as an alternative to deep comparisons or JSON.stringify, That's what we are doing at Sanjagh.
sh
npm install use-custom-compare-effect
or yarn
yarn add use-custom-compare-effect
``MIT