# Multiple Listeners

**URL:** <https://community.thunkable.com/t/multiple-listeners/813149>\
**Category:** Questions about Thunkable X\
**Created:** [September 13, 2020, 7:43am UTC](https://community.thunkable.com/t/multiple-listeners/813149 "2020-09-13T07:43:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [November 1, 2020, 8:27pm UTC](https://community.thunkable.com/t/multiple-listeners/813149/2 "2020-11-01T20:27:20Z")

</div>

I was just working throught a similar issue. A few observations and strategies for you (and those who find this thread in the future):

1. Having multiple listeners for the Realtime DB Component on different screens results in only one of the Change Events Triggering
2. Creating Mulitple Realtime DB Components (one for each screen) pointing to the same firebase database allows mulitple screens to update whenever data changes

Mulitple asynchronous event can be confusing. So to illustrate the point, here is a sample application:  
[https://x.thunkable.com/copy/5e64e2455b568f7b8bdfbd0a165d4e40](https://x.thunkable.com/copy/5e64e2455b568f7b8bdfbd0a165d4e40)

If you add your firebase Web API key and database to this sample application, you can test it to see how it work. Here are a few highlights:

I have two separate screens (cheese and crakers). Each needs to update if either the cheese or cracker branch changes (respectively). I created 2 Realtime DB components, one for cheese and one for crackers. I created 2 listeners per realtime DB. With this system I can have any number of listeners, as long as each Realtime DB has only one listener (on one screen).

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

The Cheese Screen and Listener

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/3/f3e2b0b9226c3fc5a0bde5726d3ee5e40da23c48.png)  
The Cracker Screen and Listener  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/c/fcb49cb88f9dc50bf54dc7c578035231060c1135.png)

---

_[View the full topic](https://community.thunkable.com/t/multiple-listeners/813149)._
