Answer the question
In order to leave comments, you need to log in
Why doesn't the Shallow comparison work in the connect function?
I connect the component to the store like this:
const mapStateToProps = (store, ownProps) => ({
userIsFollowable: store.users[ownProps.userId].isFollowable,
groupIsFollowable: store.groups[ownProps.groupId].isFollowable
});
export default connect(mapStateToProps)(FollowLinks);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question