React-Redux connect issues in typescript

Posted by Andre Scott | Updated on

React-Redux connect issues in typescript. I’m not sure why the typings can’t infer the type from the presentational component alone, but it will work if ownProps is typed in connect.

It also can infer it if ownProps is typed in mapDispatchToProps ->


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers