How to combine react-redux connect() and withIonLifeCycle() in @Ionic/react?

I’m trying to combine react-redux connect() and withIonLifeCycle() in @Ionic/react but no luck. I had to use Ionic React lifecycle hook instead for now.

useIonViewDidEnter,
useIonViewDidLeave,
useIonViewWillEnter,
useIonViewWillLeave,

Anyone can do this? Please give me some sample code.
Many thanks.

@mhartington, hope you can help :slight_smile:

I tried but not luck, for me this is a bug. I explain what I did.

withIonLifeCycle are a HOC so, this is same to use for example “withRouter”, when you use react-router-dom.

My code here ** export default connect( mapStateToProps, { myAction } )( withIonLifeCycle( MyComponent ) ) **
After this code life cycle methods should work but nothing happens, so, fo me, it is a bug.

Also I found more bugs, ion-menu are totally broken, update and work ones, the second don’t. This is a beta and have problems, or maybe is my operating system, I don’t know >﹏<