I want to create a memoized selector which will update automatically when the state in the redux store changes.
I read about Reselect's createSelector here:
https://redux.js.org/recipes/computing-derived-data
I see that mapStateToProps is being used to connect the selector to the store.. I'm currently using redux with hooks only (useDispatch and useSelector) without using connect(mapStateToProps, mapDispatchToProps).
Is there a way to use createSelector but still without using connect? If not, is there maybe another way to create a memoized selector?