In my app, I am implementing a feature that dynamically removes query onSnapshot listeners and replaces them with new ones. To ensure that resources are properly freed up, I need to test the effectiveness of the unsubscribe function.
Unfortunately, I do not have direct access to the unsubscribe reference for monitoring purposes. Is there any way to determine the number of active onSnapshot listeners so that I can verify if the correct count is being maintained?
My application utilizes version 9 of the Firebase web JavaScript SDK.