Funkcja React zwana ostatnim stanem
this.setState({
someState: obj
}, () => {
this.afterSetStateFinished();
});
DevPedrada
this.setState({
someState: obj
}, () => {
this.afterSetStateFinished();
});