constructor(props) {
super(props)
this.openCurrentUserInfo = this.openCurrentUserInfo.bind(this)
this.state = {
showCurrentUserInfo: null
}
}
openCurrentUserInfo(event, conversation, type) {
this.setState({
showCurrentUserInfo: conversation
})
console.log(this.state.showCurrentUserInfo)
}
this.setState({
showCurrentUserInfo: conversation,
}, () => {
console.log(this.state.conversation);
});
componentDidUpdate(prevProps, prevState) {
console.log('prev conversation: ', prevState.conversation);
console.log('new conversation: ', this.state.conversation);
}