Last active
October 12, 2016 23:41
-
-
Save nicolaslopezj/91a3eca3482f5e75d0686d80f4f87ea7 to your computer and use it in GitHub Desktop.
Apollo React Post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Before */ | |
export default graphql(query, { | |
options: ({ avatarSize }) => ({ variables: { avatarSize } }) | |
})(Component) | |
/* After */ | |
export default withGraphQL(query)(Component) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment