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

**URL:** <https://forum.codewithmosh.com/t/why-setusers-saveduser-users-not-make-name-mosh-twice-instead-of-one-only/19307>\
**Category:** React\
**Created:** [April 2, 2023, 6:03am UTC](https://forum.codewithmosh.com/t/why-setusers-saveduser-users-not-make-name-mosh-twice-instead-of-one-only/19307 "2023-04-02T06:03:00Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Jorge](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jorge](https://forum.codewithmosh.com/u/Jorge)\
**Post date:** [April 3, 2023, 1:51pm UTC](https://forum.codewithmosh.com/t/why-setusers-saveduser-users-not-make-name-mosh-twice-instead-of-one-only/19307/5 "2023-04-03T13:51:09Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/f/f5208e7b6a8c9b01951af9af19271670ee658041.png)

---

_[View the full topic](https://forum.codewithmosh.com/t/why-setusers-saveduser-users-not-make-name-mosh-twice-instead-of-one-only/19307)._
