SetState muito lento
function() {
var tempVar = objOld + newStuff;
setObjOld(tempVar);
//code that needs updated state
}
Defiant Dove
function() {
var tempVar = objOld + newStuff;
setObjOld(tempVar);
//code that needs updated state
}