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

Avoid clobbering default options with undefined values. #6715

Merged
merged 2 commits into from
Jul 28, 2020

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented Jul 28, 2020

Should fix #5978, using an approach inspired by trojanowski/react-apollo-hooks#77.

There may be other places in the library where we should be compacting options before merging them together, but the changes in this PR are a good start.

@benjamn benjamn added this to the Post 3.0 milestone Jul 28, 2020
@benjamn benjamn self-assigned this Jul 28, 2020
Copy link
Member

@hwillson hwillson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great @benjamn - thanks!

@benjamn benjamn merged commit 077ec55 into master Jul 28, 2020
@benjamn benjamn deleted the avoid-clobbering-options-with-undefined branch July 28, 2020 13:13
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

defaultOptions.mutate.fetchPolicy is ignored by useMutation
2 participants