Untitled

 avatar
unknown
plain_text
3 years ago
357 B
5
Indexable
const mapStateToProps = (state) => {
  console.log('ActiveChat.mapStateToProps invoked', state);
  return {
    user: state.user,
    conversation: Object.assign({}, 
        state.conversations &&
        state.conversations.find(
          (conversation) => conversation.otherUser.username === state.activeConversation
        )
      )
  };
};
Editor is loading...