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.
Parameters
Section titled “Parameters”number
The settled item count, including 0.
counts
Section titled “counts”The current map (from parseSidebarSectionCountsCookie).
section
Section titled “section”The section whose item count just settled.
Returns
Section titled “Returns”The updated map — a new object, counts is never mutated.