lemmy-ui icon indicating copy to clipboard operation
lemmy-ui copied to clipboard

Add long-polling for `GetUnreadCounts`

Open dessalines opened this issue 2 years ago • 3 comments

After the http merge is complete, we should add long-polling to refetch unread counts.

dessalines avatar Jun 10 '23 12:06 dessalines

Will this require a change on the backend as well?

SleeplessOne1917 avatar Jun 12 '23 22:06 SleeplessOne1917

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

sunaurus avatar Jun 12 '23 23:06 sunaurus

Its on the navbar component, which has the unread counts.

dessalines avatar Jun 14 '23 15:06 dessalines