diff options
Diffstat (limited to 'frontend/lib/withData.js')
| -rw-r--r-- | frontend/lib/withData.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/frontend/lib/withData.js b/frontend/lib/withData.js index 0c68f49..b784653 100644 --- a/frontend/lib/withData.js +++ b/frontend/lib/withData.js @@ -12,6 +12,7 @@ function getComponentDisplayName(Component) { export default ComposedComponent => class WithData extends React.Component { static displayName = `WithData(${getComponentDisplayName(ComposedComponent)})`; + static propTypes = { serverState: PropTypes.object.isRequired, }; @@ -61,10 +62,7 @@ export default ComposedComponent => }; } - constructor(props) { - super(props); - this.apollo = initApollo(this.props.serverState.apollo.data); - } + apollo = initApollo(this.props.serverState.apollo.data); render() { return ( |
