Additional reductions in request traffic (#2169)
* Dont poll for new content on profiles * Drop the whenAppReady query after new post to reduce traffic overhead * Reduce getPosts calls in notifs to only use them when needed
This commit is contained in:
@@ -102,6 +102,10 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
|
||||
queryClient,
|
||||
moderationOpts,
|
||||
threadMutes,
|
||||
|
||||
// only fetch subjects when the page is going to be used
|
||||
// in the notifications query, otherwise skip it
|
||||
fetchAdditionalData: !!invalidate,
|
||||
})
|
||||
const unreadCount = countUnread(page)
|
||||
const unreadCountStr =
|
||||
|
||||
Reference in New Issue
Block a user