Untitled

Anonymous
plain_text
12/08/2021 8:11 PM
476 B
14
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...