pkunwar
02/10/2017, 10:27 AMnilan
02/10/2017, 10:35 AMnilan
02/10/2017, 10:36 AMthisismissem
02/10/2017, 12:07 PMnilan
02/10/2017, 12:09 PMmatic
02/10/2017, 12:29 PMaryan
02/10/2017, 3:35 PMconst ModuleWithData = graphql(FeedQuery, {
options: (ownProps) => ({
variables: {
id: ownProps.params.moduleId
}
})
}
)(withRouter(Module))
export default ModuleWithData
to this:
const FeedWithData = graphql(FeedQuery, {
options: (ownProps) => ({
variables: {
id: ownProps.params.moduleId
}
})
}
)
export default compose(withRouter, FeedWithData)(Module)
But it shows me a blank page with nothing on the server or client. The weird part is that this works perfectly:
const FeedWithData = graphql(FeedQuery, {
options: (ownProps) => ({
variables: {
id: ownProps.params.moduleId
}
})
}
)
export default (withRouter, FeedWithData)(Module)
Any ideas what I might be doing wrong?aryan
02/10/2017, 3:35 PMaryan
02/10/2017, 6:08 PMaryan
02/10/2017, 6:08 PMaryan
02/10/2017, 6:08 PMaryan
02/10/2017, 6:29 PMts
02/10/2017, 8:53 PMjarvis
02/11/2017, 12:53 AMmulyoved
02/11/2017, 9:19 AMsdubois
02/11/2017, 9:22 AMmulyoved
02/11/2017, 9:33 AMmulyoved
02/11/2017, 9:35 AMjoao.santos
02/11/2017, 11:03 AMwallslide
02/11/2017, 11:06 AMwallslide
02/11/2017, 11:06 AMjoao.santos
02/11/2017, 11:07 AMjoao.santos
02/11/2017, 11:07 AMjoao.santos
02/11/2017, 11:07 AMwallslide
02/11/2017, 11:08 AMjoao.santos
02/11/2017, 11:08 AMwallslide
02/11/2017, 11:09 AMjoao.santos
02/11/2017, 11:09 AMwallslide
02/11/2017, 11:09 AMjoao.santos
02/11/2017, 11:10 AM