-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
collectionData fires twice #50
Comments
I'm experiencing the exact same issue using rxfire |
Hey @benzmarkus and @mvgijssel! Thanks for the report! Can one of you create a small sample in StackBlitz, a small GitHub repo, or something of the like? I'd be happy to debug. |
The same experience @davideast, I tried the code snipper in example-use, without |
We are experiencing this issue as well. |
Did anyone find a solution or workaround for this? |
@davideast As @ronnelreposo mentioned it can be reproduced with the snippet in the example use from the readme. Do you need more information to be able to reproduce the issue? |
I have a (ugly but working) workaround for the time being. For me the first time I subscribed to the query it behaved correctly, but afterwards the problem @benzmarkus describes occurred. In my case the query is called within an effect from a component store. Inside the store I have a variable called
Hope this helps someone |
Another workaround that I found is to use throttleTime For example
|
@dependabot reopen |
Any news on that? It's quite impactful when some other operations depend on that and thus fire twice themselves, throttleTime and other operators being just hotfixes that don't really fix the main issue. |
This is likely related to the |
Using the newest version and if i use collectionData(query(ref)) it fires once so this is correct.
If I am using collectionData(query(ref, ...whereStatements) and with one where statement it fires twice to the subscribe method returns twice.
The text was updated successfully, but these errors were encountered: