when i update something in firebase .on('child change ) is called to many time in firebase code example
Example: firebase update data
await firebase.database().ref().update(updates);
await firebase.database().ref().update(updates);