# Data viewer rows desapear

**URL:** <https://community.thunkable.com/t/data-viewer-rows-desapear/1575769>\
**Category:** Questions about Thunkable X\
**Created:** [October 22, 2021, 3:30pm UTC](https://community.thunkable.com/t/data-viewer-rows-desapear/1575769 "2021-10-22T15:30:54Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [October 24, 2021, 7:17am UTC](https://community.thunkable.com/t/data-viewer-rows-desapear/1575769/10 "2021-10-24T07:17:39Z")

</div>

> [@paulovaz72](#):
>
> I’m changing to use LIST VIEWER

This is not what I meant to say.

I was using the `List Viewer` as a **synchronous** component alongside the `create row` as an **asynchronous** component.

We have seen that the outer loop which contains an **asynchronous** block (`Web API` in this case) works as expected and fills the `List Viewer` with all rows. From this we come to the conclusion that the issue is with the amount if time it takes the `create record` to actually commit data to storage which is long enough for the outer loop to run again and overwrite the previous data of the `local table`.

So, the issue is all about timing. The solution is to introduce a delay in the outer loop to give the necessary time for the slower **asynchronous** block to complete its operation. This way we can avoid overwriting of the data.

See the updated project.  
[https://x.thunkable.com/projectPage/6174ffbb20566a0011faf503](https://x.thunkable.com/projectPage/6174ffbb20566a0011faf503)

I have added a new variable `stillRunning` which is turned **TRUE** in the start of the loop and only turned **FALSE** after the `create row` is done.

I also introduced a `while loop` at the bottom of the main loop to **delay** the main loop enough time for the records to be written to `local table`.

Check and let me know.

---

_[View the full topic](https://community.thunkable.com/t/data-viewer-rows-desapear/1575769)._
