función react llamada último estado
this.setState({
someState: obj
}, () => {
this.afterSetStateFinished();
});
DevPedrada
this.setState({
someState: obj
}, () => {
this.afterSetStateFinished();
});