-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Merge mutation variables from base options and function invocation #6927
Merge mutation variables from base options and function invocation #6927
Conversation
/** | ||
* Merges the provided objects shallowly and removes | ||
* all properties with an `undefined` value | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this comment for clarity.
}, | ||
result: { data: expectedData }, | ||
}, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test actually detected the behaviour for HOCs. Since this is now fixed, I'v adapted the test.
I also added another test specifically for the hooks version.
@amannn we're definitely considering this PR, thanks very much for working on it! We'll post back with an update shortly. |
@hwillson That's great, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benjamn Thank you for your help! |
Checklist:
If this PR is a new feature, please reference an issue where a consensus about the design was reached (not necessary for small changes)Fixes #6619