Setstate terlalu lambat
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
}