# Data Viewer List glitches when visibility is changed

**URL:** <https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923>\
**Category:** Questions about Thunkable X\
**Tags:** bug\
**Created:** [June 4, 2021, 5:32pm UTC](https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923 "2021-06-04T17:32:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [June 4, 2021, 5:32pm UTC](https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923/1 "2021-06-04T17:32:27Z")

</div>

Hi there,

When the screen opens, the data viewer automatically starts loading itself & I also have another normal text list-viewer to load its content. I’ve created a custom top-tab navigator (it just has buttons instead) The buttons’ job is to switch back and forth (hide & show) on both lists.

When the screen opens, the data viewer is shown first, and when I switch to my text-list tab & come back to the data viewer tab, the data viewer sort of whites out(?) It just glitches and creates huge gaps between 2 records…

Summing up, the data viewer list is glitching when its visibility is toggled. (@jane another visible-invisible bug over here)

Any suggestions? Thanks! 😀

---

<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:** [June 4, 2021, 5:55pm UTC](https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923/2 "2021-06-04T17:55:06Z")

</div>

I’m seeing lots of problems with the Data Viewer List component. So far:

1. [Component styles in custom layouts aren’t previewing](https://github.com/thunkable/thunkable-issues/issues/947)

2. DVL data does not show up in Thunkable Live when first previewed. A “Refresh Data” block fixes this each time I preview.

3. [The “Refresh Data” block crashes frequently.](https://github.com/thunkable/thunkable-issues/issues/934)

4. [Assigning a list of values from a local DB to a DVL subcomponent causes an internal error](https://github.com/thunkable/thunkable-issues/issues/948)

5. [A couple reports of Airtable data not syncing to a DVL](https://github.com/thunkable/thunkable-issues/issues/824)

6. DVL data isn’t syncing properly with a local DB. When I add data to a DB and then re-open my project in Thunkable Live or as a downloadable iOS app, it sometimes doesn’t have the data that was recently added. The same exact code will save and display the data or NOT save and display the data. There doesn’t seem to be an obvious cause or pattern to this.

Not meaning to hijack your thread but I think there’s enough evidence that DVLs aren’t working properly that I hope when @jane and @domhnallohanlon see this, they can also review the links above.

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [June 5, 2021, 3:48am UTC](https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923/3 "2021-06-05T03:48:58Z")

</div>

Hi, @tatiang!

Yes, even I have experienced a few of the issues you listed.

- I need to refresh DVL every time, so it would show me my complete data
  - In my case, I have a airtable datasource of 3800+ entries connected to my DVL. When screen initializes, I can see only exactly 10 entries () - and then I have to refresh it to see rest entries.

- The refresh block also frequently crashes for me

I look forward to the fixes 🙂

* * *

**Edit** : Here’s a screen recording of my main issue - (the data-source connected has 3880+ records)

[https://vimeo.com/559287717](https://vimeo.com/559287717)

> Thunkable Live v27101, on Galaxy A50 [Android 10]

**Note :** The ‘Directory’ & ‘Networking’ are my custom-made top tabs, because I wanted an image above them.

- As you can see, the first time, I can only see exactly 10 entries.
- But when I click the ‘directory’ tab (which just hides the DVL & shows a column) and then click the ‘networking’ tab again, you can see the entries have increased.
- But, when I go to the directory tab & come back to the networking tab, the entries have stopped at a certain record. It won’t go further from that.
- It should’ve shown all 3800+ entries at once on start.

Summing up, hiding and showing the DVL causes a change in displayed entries.

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [June 7, 2021, 5:14am UTC](https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923/4 "2021-06-07T05:14:51Z")

</div>

**Update :** The normal text list-viewer is also showing these bugs. When I hide the directory column & show it again, the list viewer either stops at a certain no. of items/displays a large gap between 2 items.

Please take a look at this @jane @domhnallohanlon - I really need to roll out my app by this week & without these features, my most important feature will become useless 🙁

Thanks!

---

<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:** [June 9, 2021, 6:41pm UTC](https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923/5 "2021-06-09T18:41:07Z")

</div>

Adding a link to a Github issue that explains #6 that I mentioned above:

> <https://github.com/thunkable/thunkable-issues/issues/959>
>
> \### Platform
> Thunkable X, legacy interface
> 
> \### Issue/Request Origin
> 
> \### S…teps to Reproduce
> 1. I'm using a Data Viewer List (DVL) to display data from a local DB. The data includes a photo and text.
> 2. The text appears after updating to a new version (via Test Flight, but also in Thunkable Live and downloaded iOS apps)
> 3. The photos do not appear in the DVL and are missing from the local DB.
> 4. So a DVL row with photo + text will only show the text. I can then add a new photo and it will display but any previously stored photos will not be there.
> 
> \*\*This happens if I download the project to my iPhone, add a new photo and text and save the entry. Then, if I download the project again, the photo I added last is missing but the text in the same DVL row is there.\*\*
> 
> \### Project Link
> I've sent the project link via Support chat several times. The link right below is a super-simplified version of it.
> 
> And here's a simplified version of the project (public): 
> https://x.thunkable.com/projects/60c0df9790b63a00128445af/0b3703e9-e7f0-4787-99c0-b42925a89f49/designer
> 
> \### Expected Behavior
> 
> \### Actual Behavior
> \`\`\`
> STACK TRACE AND/OR SCREENSHOTS
> \`\`\`

---

<div class="post-metadata">

**Author:** ![sedat](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@sedat](https://community.thunkable.com/u/sedat)\
**Post date:** [February 9, 2023, 3:31pm UTC](https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923/6 "2023-02-09T15:31:37Z")

</div>

Is there any progress on this? The DVL works (more frequently) on the web interface but disappears completely, once I make a live test on my mobile device.

---

<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:** [February 9, 2023, 3:39pm UTC](https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923/7 "2023-02-09T15:39:30Z")

</div>

Are you using a Navigator in your project? Can you share a video of what’s happening and/or a link to your project?

---

<div class="post-metadata">

**Author:** ![sedat](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@sedat](https://community.thunkable.com/u/sedat)\
**Post date:** [February 9, 2023, 3:47pm UTC](https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923/8 "2023-02-09T15:47:00Z")

</div>

Thanks for the quick reaction!

Yes, I do use a navigator.

It looks very messy right now but nevertheless the link is:

[https://x.thunkable.com/projectPage/61fd4f2d6281390011d56572](https://x.thunkable.com/projectPage/61fd4f2d6281390011d56572)

It’s the second tab (‘3D’) in the top navigator. As I mentioned, the error occurs only on the mobile device.

---

<div class="post-metadata">

**Author:** ![sedat](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@sedat](https://community.thunkable.com/u/sedat)\
**Post date:** [February 15, 2023, 9:24am UTC](https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923/9 "2023-02-15T09:24:33Z")

</div>

Now the data viewer even doesn’t appear in the web preview…

---

<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:** [February 15, 2023, 5:08pm UTC](https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923/10 "2023-02-15T17:08:18Z")

</div>

The Data Viewer List (DVL) _does_ appear in both the web preview and Thunkable Live. You can verify that by adding an “empty text” property to the DVL:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/d/cdd80c96ca4f0be08b88354571e31e8d3f529595.png)

But there are no values in the DVL so, yes, it looks blank. I believe what’s happening is that you have asked Thunkable to delete all of the data source rows and then recreate them but you have done this in the wrong order.

When you stack the [delete rows] and [for each item] blocks, the [for each item] block does not wait for the [delete rows] block to finish. It fires immediately after the [delete rows] block fires. So for example, if it takes 0.02 seconds for rows to be deleted from a data source but only takes 0.01 seconds to create the new rows, the rows will be created before the rows are all deleted. That might be confusing so… always put blocks you want to happen _after_ another block inside of the “do” section like this:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/3/53fa69556de93c488a19fa7b8b80834a14c49ee7.png)

---

<div class="post-metadata">

**Author:** ![sedat](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@sedat](https://community.thunkable.com/u/sedat)\
**Post date:** [January 3, 2024, 5:25pm UTC](https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923/11 "2024-01-03T17:25:13Z")

</div>

I apologize for my late response. Thanks a lot for the hint!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:22pm UTC](https://community.thunkable.com/t/data-viewer-list-glitches-when-visibility-is-changed/1325923/12 "2024-11-08T13:22:04Z")

</div>


