-
Notifications
You must be signed in to change notification settings - Fork 787
Conversation
@jeshep: 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/ |
I hope this will be merged soon, as I actually need it right at this moment. |
What's the hold up? This should have been in the original implementation. |
Ping. This needs to happen. I'm forced to use |
Was about to open the same PR when I saw yours. This feature would be indeed much appreciated, especially with the new render prop approach that makes the data unavailable through props. Shouldn't this PR also includes an |
Added onError prop to the PR. Would be nice to get some feedback on this PR from the maintainers. |
Apollo devs, how can we support in getting this merged? This would really help. |
Would love to see this make it through. Haven't peeked at the changes yet but will onCompleted be fired on fetchMore? |
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 is awesome @jeshep - thanks very much for working on this (and sorry for the long delay)! We're all set here, but I'll hold off on merging for a few more mins while I get the API docs updated in the apollo-client
repo. Thanks again!
Awesome! Glad I could contribute. |
🎉 |
Hi! Would anyone in this thread mind shedding some light on #2177? It looks like an oversight of this PR, but maybe it's not and it's by design. Thanks! |
Allows a function to be passed into the Query component that will be run once the query has completed. Useful for modifying the local state with data from a query, e.g. initialize the select value to the first item from the query results.
Reference Issue: #1862
Not sure if there is a better place in the Query component to call the provided onCompleted function, but this implementation seems to work.
Checklist: