question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat(query): method for clearing all listeners

See original GitHub issue

What is the current behavior? Dispatching CLEAR_DATA action is not clearing all my listeners.

What is the expected behavior? It should clear all the listeners.

Which version of redux-firestore are you using? What about other dependencies? "redux-firestore": "^0.7.0",

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ceafivecommented, Mar 11, 2021

@prescottprue Hello thanks for a great library. Any update on this? This is need because I set the listeners dynamically and will not know the listeners attached when user is logging out therefore I cannot use unsetListeners since I have to know the specific query configs. A method to clear all listeners will be really helpful. Thanks

0reactions
rwichmanncommented, Aug 2, 2021

I have the same problem. On logout I don’t know which listeners to unset, since they were added dynamically.

@ceafive Thanks for outlining your use case - hopefully you should be able to loop over the listener settings which are stored on the extended Firebase instance

I couldn’t find the listeners on the firebase instance. Can you explain where I can find them?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove all listeners in an element? - Stack Overflow
I think that the fastest way to do this is to just clone the node, which will remove all event listeners: var old_element...
Read more >
Go Fiber by Examples: Delving into built-in functions
Query method is an object containing a property for each query string parameter in the route. We can pass an optional default value...
Read more >
Customer Feedback: Why It's Important + 7 Ways to Collect It
Think about your most pressing goals and start with one clear, simple method for collecting customer feedback before expanding out to more ...
Read more >
How to Manage Your Audience Data in Mailchimp
In this article, you'll learn the benefits of organizing all your customer data in Mailchimp, and how to use our audience management tools...
Read more >
cloud_firestore 1.0.1 | Flutter Package - Pub.dev
FEAT : update Firebase iOS SDK version to 6.33.0 (from 6.26.0). ... FIX: All document/query listeners & currently in progress transactions are now...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found