ios - How can I confirm ref.removeAllObservers() has completed? -


i'm looking similar firebase completion block confirm i've removed firebase callbacks before switch next viewcontroller

ref.removeallobservers() let resultcontroller = self.storyboard!.instantiateviewcontrollerwithidentifier("home") as! uiviewcontroller self.presentviewcontroller(resultcontroller, animated: true, completion: nil) 

there no "show me registered observers" method in firebase api.

that said: if stuck lingering observers, registered them in child node, called removeallobservers on top-level ref. you'll have remove each observer exact ref/child registered it.

see web docs off:

calling off() on parent listener not automatically remove listeners registered on child nodes, off() must called on child listeners remove callback.


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -