# Help for Firebase data changed event block

**URL:** <https://community.thunkable.com/t/help-for-firebase-data-changed-event-block/1837021>\
**Category:** Questions about Thunkable X\
**Created:** [April 18, 2022, 3:51pm UTC](https://community.thunkable.com/t/help-for-firebase-data-changed-event-block/1837021 "2022-04-18T15:51:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)\
**Post date:** [April 18, 2022, 3:51pm UTC](https://community.thunkable.com/t/help-for-firebase-data-changed-event-block/1837021/1 "2022-04-18T15:51:58Z")

</div>

hi

I discover teamwork through my applications and the interest and power not yet mastered of this function  
my problem ? during the update all devices are affected and I would like the original device not to be affected I use a flag when the user saves data it changes to one and for all other devices this flag is zero and in the update I test this flag  
it works whenever it wants, I don’t see what could be missing…

---

<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:** [April 18, 2022, 3:58pm UTC](https://community.thunkable.com/t/help-for-firebase-data-changed-event-block/1837021/2 "2022-04-18T15:58:19Z")

</div>

You will need to _show_ how you are doing these things. What blocks are you using?

---

<div class="post-metadata">

**Author:** ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)\
**Post date:** [April 18, 2022, 4:20pm UTC](https://community.thunkable.com/t/help-for-firebase-data-changed-event-block/1837021/3 "2022-04-18T16:20:17Z")

</div>

hi

here are the blocks when the user saves data

 ![Capture d’écran 2022-04-18 à 18.07.12](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/6/269d39c5664ed0bc963f539590f43bf4d2414a2f.png)

and in the data changed block there is this

 ![Capture d’écran 2022-04-18 à 18.15.15](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/7/773ea7bc0c450ad48b6e30d7f8aeb2ee98d4d35f.jpeg)

---

<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:** [April 18, 2022, 4:47pm UTC](https://community.thunkable.com/t/help-for-firebase-data-changed-event-block/1837021/4 "2022-04-18T16:47:33Z")

</div>

As far as I can tell, here’s what those blocks do:

User clicks save  
 → change mondevice to 1  
 → save Firebase data (which triggers the next set of blocks…)

**Any** Firebase value changes  
 → if mondevice=0 → set label to Firebase value  
 → if mondevice=1 → change mondevice to 0 (so the next Firebase value change will display the value in a label).

Is that what you expect those blocks to do? If so, what problem are you seeing, exactly? It’s helpful if you use variable names and label names when describing it. So instead of saying “this flag is zero”, you might say “mondevice equals zero” or “check99 shows ‘hello world’.”

---

<div class="post-metadata">

**Author:** ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)\
**Post date:** [April 18, 2022, 5:20pm UTC](https://community.thunkable.com/t/help-for-firebase-data-changed-event-block/1837021/5 "2022-04-18T17:20:40Z")

</div>

absolutely except that sometimes it doesn’t work, that is to say I want a text to be displayed stating that there has been an update only on the other devices but it is also displayed on the device at the origin of the update (its user knows well and already sees the update)

---

<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:** [July 17, 2022, 5:21pm UTC](https://community.thunkable.com/t/help-for-firebase-data-changed-event-block/1837021/6 "2022-07-17T17:21:35Z")

</div>

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