How to unsubscribe from redux store when component will unmount?

Posted by Rohit Kumar | Updated on

Want to unsubscribe from redux store when component will unmount? connect has a second parameter of ownProps, which is an object containing all passed-in props. You would do something like this:


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