cantierecreativo/redux-bees

Is it possible to use standard HOC instead of decorator syntax?

Closed this issue · 1 comments

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 and branch HOC's without the decorator syntax?

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))