# Signal repeat.for to update array

**URL:** <https://discourse.aurelia.io/t/signal-repeat-for-to-update-array/4697>\
**Category:** Help Requests\
**Created:** [March 16, 2022, 7:42pm UTC](https://discourse.aurelia.io/t/signal-repeat-for-to-update-array/4697 "2022-03-16T19:42:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cm138353](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@cm138353](https://discourse.aurelia.io/u/cm138353)\
**Post date:** [March 16, 2022, 7:42pm UTC](https://discourse.aurelia.io/t/signal-repeat-for-to-update-array/4697/1 "2022-03-16T19:42:19Z")

</div>

In aurelia 1 i was able to just update the array that i had repeat.for on and the DOM would reflect the changes. Now in aurelia 2 it seems like the array is changing without the DOM reflecting these changes. I tried using “& signal” on the repeat.for, this did not work and i also tried doing array.slice() to see if that would trigger rebinding / updating DOM. Please help. thank you.

---

<div class="post-metadata">

**Author:** ![elitastic](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/elitastic/32/1787_2.png) [@elitastic](https://discourse.aurelia.io/u/elitastic)\
**Post date:** [March 17, 2022, 9:51am UTC](https://discourse.aurelia.io/t/signal-repeat-for-to-update-array/4697/2 "2022-03-17T09:51:08Z")

</div>

Could you create a small reproduction of your problem on dumber gist?

It should work, like you can see here:

[https://gist.dumber.app/?gist=71056bca74eacf0a3348a3b07b6dd89b](https://gist.dumber.app/?gist=71056bca74eacf0a3348a3b07b6dd89b)

---

<div class="post-metadata">

**Author:** ![cm138353](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@cm138353](https://discourse.aurelia.io/u/cm138353)\
**Post date:** [March 17, 2022, 7:44pm UTC](https://discourse.aurelia.io/t/signal-repeat-for-to-update-array/4697/3 "2022-03-17T19:44:52Z")

</div>

You know what i figured it out, it was because i was using lodash to remove things from the array. I switched to using Array.splice and it started working. maybe lodash reinitializes the array. Thank you so much.
