Selection Mode State Holder

A small @Stable holder for multi-select in a Compose list — keyed by stable id rather than list position, with every mutation funnelled through one private method so a hard cap on the selection size cannot be bypassed, plus the toggle/clear/select-all semantics that make the two gestures read differently. Use when building bulk actions over a list, when selections drift onto the wrong rows after a reorder or a page load, or when a cap holds for tapping rows but not for select-all.

maxrave-dev 0b2ca97 8.0 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/selection-mode-state-holder commit 0b2ca9793d

Frequently asked questions

npx skillmds@latest add maxrave-dev/selection-mode-state-holder