我已经看到了一些与此相关的问题,但是没有一个问题能真正证实我的查询.
I have seen a few questions about this but none of them really confirms my query.
如果我在父节点上.removeAllObservers(),这是否也递归地删除了可能已附加在所有子节点和子节点等上的所有其他观察者?
If I .removeAllObservers() at a parent node, does this also recursively remove all other observers that may have been attached at all child nodes and childs-of-child nodes etc...recursively?
推荐答案removeAllObservers() 状态:
删除当前引用处的所有观察者,但不删除 引用儿童的任何观察员.必须调用removeAllObservers 再次针对建立听众的每个儿童参考 删除观察者.
Removes all observers at the current reference, but does not remove any observers at child references. removeAllObservers must be called again for each child reference where a listener was established to remove the observers.
这应该是明确的.
更多推荐
Firebase ref.removeAllObservers()还会递归地删除子观察者吗?
发布评论