-
Notifications
You must be signed in to change notification settings - Fork 45
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
Count not updating when find() selector changes #82
Comments
Same for me, any solution? |
I assume your I don't recall if Meteor automatically stops an existing subscription if you subscribe again with different arguments. If not, then save the handle returned by There may be some overlap with an issue described in #66 in this comment. If you can generate a very basic Meteor app that demonstrates this problem and upload it to github with a link in a comment here, I'll fidget with it and come up with some better advice. |
@boxofrox you are 100% correct. I actually ended up abandoning Counts and I'm now periodically polling a server method for the count as needed. Still a great package! |
@abecks glad you found a solution. @DominikGuzei if you're still seeking a solution for this issue, let's begin in a new issue. |
Haha, found the same "solution" as @abecks – polling methods, since that's the only performant way to count large collections. The realtime aspect is much less important for us 😉 But btw. my solution to the problem discussed here was to separate the counter publication from another one. So the problem seemed to be related with using |
I have a publication that looks like this:
Designed to give me the total count of company records, and then returning a limited cursor for pagination.
When
query
changes (to filter the list), the result ofCounts.get('CompanyInfiniteCount')
is not changing from it's initial value.I am trying to achieve the same thing as this example in the docs:
But with a changing document selector. Am I using Counts wrong?
The text was updated successfully, but these errors were encountered: