3 ms·
It appears equality checks for objects is not supported i.e.: Immutable({a: 1}) !== Immutable({a: 1}) There is no built in equality function either [1] so
by kasbah 9y ago
It appears equality checks for objects is not supported i.e.:
Immutable({a: 1}) !== Immutable({a: 1})
There is no built in equality function either [1] so that seems like that's a big advantage Immutable.js has over this. Maybe seamless-immutable-diff [2] could be a way to do it but I am not sure on the performance.
[1]: https://github.com/rtfeldman/seamless-immutable/issues/186 https://github.com/rtfeldman/seamless-immutable/issues/186
[2]: https://www.npmjs.com/package/seamless-immutable-diff https://www.npmjs.com/package/seamless-immutable-diff