-
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
Variables set on mutate function override one set on useMutation hook #6619
Comments
I'm trying to figure out if this is a bug or intended? |
I would also like to know if this is intended behavior; I have several mutations that rely on initially-set variables getting merged with the |
This gave me some issues when migrating to |
Is this issue still happening with >= |
@hwillson I just tested with |
@hwillson |
Thanks @ericArbour @0777101 - I'll take a closer look. |
Can confirm that this bug exists at least from |
I also noticed this behaviour in |
I've added a PR which should fix this 🙂 |
we're blocked by this as well. looks likes #6927 was merged. any chance this gets released in v3.2.1? |
we are blocked by this at the moment too, we really want to move to v3 |
Let us know if this is still a concern with |
Intended outcome:
Variables passed to
mutate
function and variables set onuseMutation
merged together into one objectActual outcome:
Variables passed to
mutate
function override what was set onuseMutation
How to reproduce the issue:
Versions
I believe that this was introduced by b273d03, specifically by removing this code:
The text was updated successfully, but these errors were encountered: