Why "setUsers([savedUser, ...users])" not make "name: Mosh" twice instead of one only?

Hi, from what I know so far…at the second call ‘users’ has the same old 10 items…because the render is in progress yet, I found this in official react docs, check it.