Last active
June 4, 2017 03:55
-
-
Save jbaxleyiii/f8864023a4f568b7d167b176d469df81 to your computer and use it in GitHub Desktop.
Options diff
This file contains hidden or 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
+ export type InputProps = { | |
+ episode: string, | |
+ }; | |
+ export const withCharacter: OperationComponent<Response, InputProps> = graphql(HERO_QUERY, { | |
- export const withCharacter: OperationComponent<Response> = graphql(HERO_QUERY, { | |
+ options: ({ episode }) => ({ | |
+ variables: { episode }, | |
- options: () => ({ | |
- variables: { episode: "JEDI" }, | |
}), | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment