-
Notifications
You must be signed in to change notification settings - Fork 189
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
Items read on other devices do not disappear on pressing 'r' #2948
Comments
Found something interesting on this... It happens only when the list is sorted by oldest first... Removing the list sort, then the refresh correctly fetch data news/src/components/feed-display/FeedItemDisplayList.vue Lines 218 to 230 in f26b553
|
Yes, that is how I have currently implemented it so that a refresh only updates the feed counters and otherwise only refreshes the view of the list and only in the case of sorting from new to old is the list cleared and the lastitemloaded counter reset. Doing this for the other sorting as well will probably not solve the problem completely, because you would have to implement a complete reload and forget everything you have loaded so far to get the items in sync. |
May be not removing the "if" but in a "else" calling the fetchMore might solve this? |
A fetchMore only loads a new batch of 40 items beginning from lastitemloaded or 0 if the counter is reset. If you have already loaded more items in your session these will probably not reloaded and therefore keep the unread state. To fix this a complete state reset is necessary. |
Right ok... So may be removing the if statement then...? I'm happy to investigate if it can be a solution here |
But I don't have oldest first enabled and I have this problem. In the browser console I have |
You can test this with both sorting directions if you want, but as I said to fix this right I think you need to clear all items from the item store and reset the counters, which is almost like reloading the app. |
which is basically done by the "if (!this.listOrdering) { " on line 220, no? |
Yeah that's the issue, the items are cached and not clearer when receiving updates |
IMPORTANT
Explain the Problem
It's explained below.
Steps to Reproduce
System Information
The text was updated successfully, but these errors were encountered: