# DataViewer "on refresh" detection

**URL:** https://community.thunkable.com/t/dataviewer-on-refresh-detection/1883275
**Category:** Questions about Thunkable X
**Created:** [May 19, 2022, 2:03am UTC](https://community.thunkable.com/t/dataviewer-on-refresh-detection/1883275 "2022-05-19T02:03:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![paulovaz72](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/paulovaz72/32/119071_2.png) [@paulovaz72](https://community.thunkable.com/u/paulovaz72)
#### Post date: [May 19, 2022, 2:03am UTC](https://community.thunkable.com/t/dataviewer-on-refresh-detection/1883275/1 "2022-05-19T02:03:49Z")

</div>

Hi Thunkers,

Before I put this in my [Thunkable Feature Requests](https://community.thunkable.com/t/41-ideas-for-thunkable-improvement), anybody knows any _hack to detect when the user does a swipe up in the dataviewer_ component to refresh the data?

The ideal would be to have an `on dataviewer refresh` block to detect when happens, but today we have just the `call dataviewer's refresh data` block to force the refresh, and after, do something. Unfortunately this block does not meet the need to do something when the user manually swipe up and refresh the dataviewer.

Regards,

Paulo Vaz

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [May 19, 2022, 5:51am UTC](https://community.thunkable.com/t/dataviewer-on-refresh-detection/1883275/2 "2022-05-19T05:51:28Z")

</div>

Can you give an example of what you would want to do when the user refreshes the data viewer?

---

<div class="post-metadata">

### Author: ![paulovaz72](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/paulovaz72/32/119071_2.png) [@paulovaz72](https://community.thunkable.com/u/paulovaz72)
#### Post date: [May 19, 2022, 12:57pm UTC](https://community.thunkable.com/t/dataviewer-on-refresh-detection/1883275/3 "2022-05-19T12:57:36Z")

</div>

Basically load new data in the datasource that feeds the dataviewer, coming from Firebase.

I dont want to refresh via Firebase listener to avoid that refresh effect that move the list to the 1st line in each change on Firebase, but only when user do the swipe.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [August 17, 2022, 12:58pm UTC](https://community.thunkable.com/t/dataviewer-on-refresh-detection/1883275/4 "2022-08-17T12:58:06Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
