Closed CoenWarmer closed 6 years ago
Never mind, I figured it out.
Went for:
const withApiData = query('data', api.getPage, (perform, ownProps) =>
perform({ pageId: getPageSlug(ownProps.match) })
)
and
export default withApiData(connect(mapStateToProps)(Page))
Hey there,
I would like to use the HOC of this library but I'm not able to use the decorator syntax due to other project requirements. Is it still possible to use the
query
andbranch
HOC's without the decorator syntax?