Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
<Mutation
mutation={CREATE_MATCH_MUTATION}
update={createUpdate}
refetchQueries={['scores']}
>
{(createMatchMutation, { loading, error }) => (
<Button
type="primary"
disabled={!awayTeam}
onClick={() => {
createMatchMutation({
variables
});
}}
>
Add Match!
</Button>
)}
</Mutation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.