Does Firebase ref.removeAllObservers() also remove child observers recursively?

后端 未结 1 1319
广开言路
广开言路 2021-01-27 10:01

I have seen a few questions about this but none of them really confirms my query.

If I .removeAllObservers() at a parent node, does this also recursively re

相关标签:
1条回答
  • 2021-01-27 10:20

    The API documentation for removeAllObservers() states:

    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.

    This should be unambiguous.

    0 讨论(0)
提交回复
热议问题