Distinct By Key Reset Cancel Per Item

Per-item pipelines that key on the item id with distinctUntilChangedBy, cancel the previous item's in-flight work before starting the next, and reset the visible state before filling it — so nothing from the previous item can appear under the new one. Use when a detail screen briefly shows the last item's artwork or text, when a slow response overwrites a newer one, or when a field stays populated after moving to an item that has no value for it.

maxrave-dev Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/distinct-by-key-reset-cancel-per-item commit a6ada74e64

Frequently asked questions

npx skillmds@latest add maxrave-dev/distinct-by-key-reset-cancel-per-item