Skip to content
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

Stream.feedManager.getNotificationFeedStats() isn't reactive. #12

Open
albertkai opened this issue Oct 1, 2016 · 3 comments
Open

Stream.feedManager.getNotificationFeedStats() isn't reactive. #12

albertkai opened this issue Oct 1, 2016 · 3 comments
Assignees
Labels

Comments

@albertkai
Copy link

Notification subscription works perfect, but the stats doesn't get updated reactively.. Only after reloading the page it shows actual numbers. When I explicitly execute Stream.notifications.findOne({ feedGroup: 'notification', feedId: Meteor.userId()}) in the console, after performing some action, the returned numbers aren't updated, but the notification itself is successfully received and displayed

@albertkai
Copy link
Author

I use server client to add notifications..

@matthisk
Copy link
Contributor

matthisk commented Oct 5, 2016

Unfortunately this behavior has been removed from the Stream realtime transport (it received a major refactor a while back). This means the realtime transport no longer exposes the amount of unread and unseen activities, something the meteor library currently relies on to make these counters reactive.

@matthisk matthisk added the bug label Oct 5, 2016
@albertkai
Copy link
Author

albertkai commented Oct 5, 2016

I use temporary workaround - copy the counts in a reactive variable on first load, and use observeChanges on used Stream collections to increment that on added. maybe that will help somebody:)

@dwightgunning dwightgunning self-assigned this Sep 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants