kentcdodds / use-deep-compare-effect

🐋 It's react's useEffect hook, except using deep comparison on the inputs, not reference equality
https://npm.im/use-deep-compare-effect
MIT License
1.88k stars 84 forks source link

use-deep-compare-effect breaks on IE11 due to dequal dependency not working on IE9+ #27

Closed andrei10k closed 3 years ago

andrei10k commented 3 years ago

Hey,

As you can see on the docs dequal is not working on IE9+. i found the issue on IE11, was breaking the app. Is it possible to use dequal/lite?

https://www.npmjs.com/package/dequal

kentcdodds commented 3 years ago

@andrei10k, I'm afraid not because it doesn't support all data types we need to support.

Luckily the implementation is just a few lines of code so this is easily forkable :)