Slide 48
Slide 48 text
high impedance mismatch
Promise.all([
api.get(GET_PERSON_PROFILE, { userId: '1234' }),
api.get(GET_PERSON_STATUS, { userId: '1234' })
]).then(([ personProfile, personStatus ]) => {
this.setState({
name: personProfile.data.name,
isOnline: personStatus.data.status === 'ONLINE'
});
});
48