betodealmeida commented on a change in pull request #4730: Fix deep equality 
logic
URL: 
https://github.com/apache/incubator-superset/pull/4730#discussion_r178579677
 
 

 ##########
 File path: superset/assets/javascripts/reduxUtils.js
 ##########
 @@ -95,5 +96,5 @@ export function areArraysShallowEqual(arr1, arr2) {
 }
 
 export function areObjectsEqual(obj1, obj2) {
-  return JSON.stringify(obj1) === JSON.stringify(obj2);
+  return equals(obj1, obj2);
 
 Review comment:
   This will compare leaves using `==` instead of `===`, is that the intended 
behavior? If not, you can pass `opts.strict` as `true`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to