Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Mutation component #1683

Merged
merged 5 commits into from Feb 17, 2018
Merged

Mutation component #1683

merged 5 commits into from Feb 17, 2018

Conversation

jbaxleyiii
Copy link
Contributor

This builds on the work of @excitement-engineer and fixes up the any types as well as returns the result from the mutation call

* Initial implementation for Mutation component

* Updated the error message

* Improved the component. Added some initial tests

* Added more props to the mutation component.

* Improved typescript typings

* fixed listing issues.

* Added onComplete and onError props

* Implemented logic for handling changes in props.

* Changelog

* prop-types validation

* The render prop only shows the result of the most recent mutation in flight

* Only verify document if the mutation has updated

* Moved the onCompletedMutation outside the try-catch

* Improved the type for the update prop.

* Allow for passing variables as options in the mutation function instead of through the props.
@jbaxleyiii jbaxleyiii merged commit 0f6dff6 into master Feb 17, 2018
@jbaxleyiii jbaxleyiii deleted the mutation-component branch February 17, 2018 02:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants