Using the Context API as a way of mimicking useSelector and useDispatch with redux v5

I’m working on a React project where I’m constrained to using React Redux v5, which doesn’t include useDispatch and useSelector. Nonetheless I really would like to have these hooks (or something like them) available in my app. Therefore, I’ve created a wrapper component at the top level of the app which I connect using redux’s… Read More Using the Context API as a way of mimicking useSelector and useDispatch with redux v5

How can I access useParams value inside redux selector as ownProps using reselect library

I am using "reselect" library in redux to get the data. I wanna get data based on useParams() hook and then to pass it inside mapStatetoProps as ownProps and then to selectionCollection function which is a selector and accepts the value of useParams(). Apparently, it doesn’t recognize the useParams() as ownProps and eventually returns undefined.… Read More How can I access useParams value inside redux selector as ownProps using reselect library