William's photo

I am building a web app using React+Redux+Firebase. Problem is when I do logout, it doesn't remove all realtime database listeners and causes some permission warnings because the user is not allowed to read/write the database when he's not logged in.

How do I remove all listeners of the realtime database at once? Can it be a reason of memory leak?

Thanks.

Show +1 replies
William's photo

Frank van Puffelen Thanks for the answer!!! God bless you.

William's photo

Frank van Puffelen Where can I get the link to the live btw? I have subscribed #askfirebase on youtube but didn't get notification so far.