Skip to content
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

Fix apollo-utilities isEqual bug due to missing hasOwnProperty check. #4072

Merged
merged 4 commits into from
Oct 29, 2018

Conversation

samkline
Copy link
Contributor

@samkline samkline commented Oct 28, 2018

Unfortunately some of our legacy pages still have libraries that modify prototypes of built-in objects. This was causing our cache (https://github.com/convoyinc/apollo-cache-hermes) to behave very strangely. After some debugging, I found that isEqual was broken due to a missing hasOwnProperty check, and thus always evaluated to false!

@apollo-cla
Copy link

@samkline: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

@benjamn benjamn changed the title Fix apollo-utilities isEqual on modified prototypes Fix apollo-utilities isEqual bug due to missing hasOwnProperty check. Oct 29, 2018
@benjamn benjamn merged commit 4ef4633 into apollographql:master Oct 29, 2018
@benjamn
Copy link
Member

benjamn commented Oct 29, 2018

Thanks @samkline!

@samkline samkline deleted the fix-isequal-on-prototypes branch October 29, 2018 19:52
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants