question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a deepEquals to both ImmutableArray and ImmutableObject which skips checking any branches where the children are === and immutable.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
theogravitycommented, Dec 8, 2016

i’m also interested in this feature as well, have some deeply nested objects and want to do something like this in react:

shouldComponentUpdate(nextProps) {
    // this.props.obj is immutable

   return this.props.obj.equals(nextProps.obj)
}
0reactions
juangercommented, Oct 12, 2016

@rtfeldman Hi, are you still interested in this? If so, I’d like to give it a try, rebase your branch and write tests

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java.util.Arrays.deepEquals() in Java - GeeksforGeeks
Arrays.deepEquals() is used to check whether two arrays of single dimensional or multi-dimensional arrays are equal or not.
Read more >
Objects.equals and deepEquals method sample - gists · GitHub
Objects.equals and deepEquals method sample. GitHub Gist: instantly share code, notes, and snippets.
Read more >
DeepEqual 4.2.1 - NuGet
DeepEqual is an extensible deep equality comparison library. Installing. Install via NuGet (https://www.nuget.org/packages/DeepEqual/). Install-Package ...
Read more >
java.util.Objects.deepEquals java code examples - Tabnine
Null-safe equivalent of a.equals(b). requireNonNull · hash. Convenience wrapper for Arrays#hashCode, adding varargs. This can be used to compute a hash code ...
Read more >
Meaning of Objects.deepEquals method - java - Stack Overflow
The comparison would be deep, if you passed Array objects. Non-array objects will not be evaluated deeper than what you get with equals...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found