lemmy-ui
lemmy-ui copied to clipboard
Add long-polling for `GetUnreadCounts`
After the http merge is complete, we should add long-polling to refetch unread counts.
Will this require a change on the backend as well?
Most likely you've already thought of this, but I would like to highlight that it's probably quite important to do any polling only in active tabs, for example using https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilityState
Its on the navbar component, which has the unread counts.