Created
August 13, 2016 02:16
-
-
Save jbaxleyiii/b8ae9d5750401b91742eeb5ed90598dd to your computer and use it in GitHub Desktop.
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
const withUser = graphql(GET_USER_DATA, { | |
options: (ownProps) => ({ skip: !ownProps.authenticated }) | |
}); | |
const MyComponentWithData = withUser(MyComponent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment