Skip to content

applySidebarSectionCountsUpdate

applySidebarSectionCountsUpdate(props): SidebarSectionCounts

Defined in: packages/core/src/sidebarSectionCountsCookie.ts:56

Updates counts with section’s new settled item count. Unlike applyListViewSkeletonRowCountUpdate, there is no LRU cap here — "collections"/"globals"/"media" are the sidebar’s own fixed, never-growing set of keys (no per-view-id-style unbounded growth to cap in the first place), so this is a plain merge.

number

The settled item count, including 0.

SidebarSectionCounts

The current map (from parseSidebarSectionCountsCookie).

SidebarSection

The section whose item count just settled.

SidebarSectionCounts

The updated map — a new object, counts is never mutated.