apollo-client
apollo-client copied to clipboard
Pass mutation input and context to handlers
Pass input and context from mutation function to onCompleted/onError handlers.
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)
- [ ] Make sure all of the significant new logic is covered by tests
@LeeKevin: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/
This is a small but hugely beneficial change for me. @LeeKevin any chance you're still working on this?
This is a great addition. If @LeeKevin or anyone else is interested in rebasing this, and adding a test or two, we'll get this merged. Thanks!
Went ahead and implemented this change in https://github.com/apollographql/apollo-client/pull/10052, thanks y'all!
All the best, Emmanuel, Intern:-)