# Call twice setUsers when create data? I don't get it

**URL:** <https://forum.codewithmosh.com/t/call-twice-setusers-when-create-data-i-dont-get-it/19302>\
**Category:** React\
**Created:** [April 1, 2023, 4:48pm UTC](https://forum.codewithmosh.com/t/call-twice-setusers-when-create-data-i-dont-get-it/19302 "2023-04-01T16:48:32Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![herrifransisca](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/herrifransisca/32/953_2.png) [@herrifransisca](https://forum.codewithmosh.com/u/herrifransisca)\
**Post date:** [April 3, 2023, 8:27am UTC](https://forum.codewithmosh.com/t/call-twice-setusers-when-create-data-i-dont-get-it/19302/4 "2023-04-03T08:27:52Z")

</div>

Hi @Jorge

Please see the code that I put some console.log() in it.

here’s the link : [About Pure component, why count variable is not resetting to 0? - #11 by herrifransisca](https://forum.codewithmosh.com/t/about-pure-component-why-count-variable-is-not-resetting-to-0/18969/11)

---

_[View the full topic](https://forum.codewithmosh.com/t/call-twice-setusers-when-create-data-i-dont-get-it/19302)._
