Can I remove a Firebase observer with a descriptor using only the root link?

I have all the observers in a user-defined database class that has several functions and protocols that respect links and pass results through closure. Because of this, I don't need the Firebase link in some of my view controllers, just an instance of the class. So my question is, does the observer with the handle remove a specific link?

Or can I just do FIRDatabase.database().reference().removeObserver(withHandle: handle) (perhaps with some specific user path) to remove the observer?

+4
source share
1 answer

, node, . , node, , .

, removeAllObservers, , , .

+6

Source: https://habr.com/ru/post/1672763/


All Articles