Using await inside a async makes change of state working in console.log. If i remove the await line then console.log fail because is needed callback of setState.