Last active
September 18, 2016 21:14
-
-
Save jbaxleyiii/0b4a7f1b9836f2c3bd086c7d358ee2ac 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 withPollingQuery = graphql(GET_USER_WITH_ID, { | |
options: () => ({ pollInterval: 1000 }) | |
}); | |
// alternatively you can pass an object | |
// const withPollingQuery = graphql(GET_USER_WITH_ID, { | |
// options: { pollInterval: 1000 } | |
// }); | |
const MyComponentWithData = withPollingQuery(MyComponent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment