mirror of
https://gh-proxy.org/https://github.com/klinsmaya/multica.git
synced 2026-11-11 02:46:45 +08:00
* perf(inbox): fetch the unread summary only while the page is visible Every open tab is its own client and receives every inbox event, so each event cost one unread-summary request per open tab, hidden tabs included. Each request recomputes the newest item per issue over the member's whole active inbox, so the cost scales with both the tab count and the inbox. Summary observers are now enabled only while the page is visible. On a hidden page an inbox event marks the summary invalidated without a request, and refetchOnWindowFocus re-reads it once when the page is shown again; a page that missed no event makes no request. The desktop dock badge stays on screen while its window is minimized, so it keeps the summary live with whileHidden. * refactor(inbox): isolate focus import for upstream sync (MUL-7890) Co-authored-by: multica-agent <[email protected]> * fix(inbox): gate direct summary observers by default (MUL-7890) Co-authored-by: multica-agent <[email protected]> --------- Co-authored-by: Sol-Boy <[email protected]> Co-authored-by: multica-agent <[email protected]>