connect and withRouter issue

后端 未结 4 1191
南笙
南笙 2021-01-31 16:42

I am using Redux and React for my project. I have some Routes in App.js. I also use the connect function in react-redux in my project. To prevent update blocking issue, I usuall

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-31 17:36

    If someone still has the issue then plz follow this one

    const ShowTheLocationWithRouter = withRouter(Login);
    
    export default connect(mapStateToProps, mapDispatchToProps)(ShowTheLocationWithRouter);
    

提交回复
热议问题