score:1

you are mutating the state directly by setting some properties on objects that are in your state in get(). react state should never be mutated:

// this mutates a which is an object already in your state
a.item = data1.title

as get() is async this will happen after you've already set data in getneworders(). react is not aware of those updates. you need to call this.setstate again whenever you change anything inside of the state object. also you should always create new objects instead of mutating objects in the state object.


Related Query

More Query from same tag