# UI does not update when using Client Filter

**URL:** <https://community.appfarm.io/t/ui-does-not-update-when-using-client-filter/448>\
**Category:** Bug reports\
**Tags:** ui, app-data\
**Created:** [April 26, 2023, 12:14pm UTC](https://community.appfarm.io/t/ui-does-not-update-when-using-client-filter/448 "2023-04-26T12:14:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/jonas/32/17_2.png) [@Jonas](https://community.appfarm.io/u/Jonas)\
**Post date:** [April 26, 2023, 12:14pm UTC](https://community.appfarm.io/t/ui-does-not-update-when-using-client-filter/448/1 "2023-04-26T12:14:45Z")

</div>

I am using a client filter on a datasource, and listing that out without any additional filter. I notice that when the client filter is active, the UI of the iterative container does not re-render when objects in the filter changes. In this screen recording, I see that the objects are correctly removed from the data source based on the filter (un-flagging the object), but the UI does not change.

I need to re-enable the client filter for the UI to update.

> **[Screen Recording 2023-04-26 at 14.07.28.mov](https://drive.google.com/file/d/1BFiXwwGIMcuv0JHiv2Mhz8Ck4Fm7YpGs/view?usp=share_link)**
>
> Google Drive file.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/ff6d64e7f41b382192c29611f99aa15e1c259a81.jpeg)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/1426000d7d2d5858274e49444801fda5f3f62e06.jpeg)

---

<div class="post-metadata">

**Author:** ![tonje](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/tonje/32/119_2.png) [@tonje](https://community.appfarm.io/u/tonje)\
**Post date:** [April 27, 2023, 6:01am UTC](https://community.appfarm.io/t/ui-does-not-update-when-using-client-filter/448/2 "2023-04-27T06:01:01Z")

</div>

Hi Jonas, and thanks for reaching out to us! I have reproduced your example, and you’re right, the UI does not change unless I refresh the page or re-enable the client filter. I will register this as a challenge for our developers to have a look at it. In the meantime you could use Conditional Filters that will give you the expected result with dynamic updates on flagged/unflagged items.

---

<div class="post-metadata">

**Author:** ![Jonas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/jonas/32/17_2.png) [@Jonas](https://community.appfarm.io/u/Jonas)\
**Post date:** [April 27, 2023, 4:13pm UTC](https://community.appfarm.io/t/ui-does-not-update-when-using-client-filter/448/3 "2023-04-27T16:13:31Z")

</div>

Thanks Tonje!

Here I wanted to use the feature dataSource.isEmpty() to solve empty state in a simple way, the conditional filters does not help me a lot on this. So for now, I’ll just disable and enable the client filter when I want to trigger the ui update.

Looking forward to a fix here!

---

<div class="post-metadata">

**Author:** ![Erik](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erik/32/78_2.png) [@Erik](https://community.appfarm.io/u/Erik)\
**Post date:** [April 17, 2024, 7:56am UTC](https://community.appfarm.io/t/ui-does-not-update-when-using-client-filter/448/4 "2024-04-17T07:56:09Z")

</div>

Any updates on this issue @tonje ? 🙂

---

<div class="post-metadata">

**Author:** ![tonje](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/tonje/32/119_2.png) [@tonje](https://community.appfarm.io/u/tonje)\
**Post date:** [April 17, 2024, 8:14am UTC](https://community.appfarm.io/t/ui-does-not-update-when-using-client-filter/448/5 "2024-04-17T08:14:26Z")

</div>

Hi Erik! The bug with repeating containers that doesn’t update when objects are changed was fixed in [release of v23.4](https://community.appfarm.io/t/release-notes-23-4/727) in September last year (#3566). 🙂
