Relative Content

Tag Archive for reactjsfirebasegoogle-cloud-firestore

component is re-rendering after receiving new data from server

I’m trying update my chats list. I’m receiving an object from server using “onSnapshot” query method of firestore and these object represents users, groups and channels. Then I’m combining these object using Object.assign method and then turning them into array so I can use map. The problem is when other users deletes me from their group, that group is not vanished in chats list.