-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different hashCodes produced for classes with List properties #8
Comments
@georgepapas thanks for reporting this! I'm pushing a fix for it now in #9 👍 |
@georgepapas this should now be fixed in equatable v0.2.2. Thanks again for catching and reporting this! 💯 |
Thanks for that, that was quick!, I'll take a look. Just one thing about the change, I ended up using something like this locally as a temporary workaround
Does the fix in the commit introduce potential for stack overflow error if you have a list with items that reference the list? Cheers |
@georgepapas thanks! Hmm can you provide an example? 🤔 |
Hey @felangel . Sorry for the late reply... Try this...
|
Describe the bug
When a class extends
Equatable
and that class has a list property, two different instances, with the exact same properties, produce different hashCode values.To Reproduce
Expected behavior
expected the same hashCode to be produced
Version
0.2.1
The text was updated successfully, but these errors were encountered: