Flatmaplatest Resubscribe Composite Key

Re-subscribe a downstream flow whenever a key flow changes using flatMapLatest, then collapse the resulting high-frequency stream to a composite key with distinctUntilChanged before firing expensive one-shot work. Use when a fetch re-runs on every progress tick, when it fires for the wrong item after a fast switch, or when a side effect never runs because one of its inputs arrives last.

maxrave-dev 5380391 8.3 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/flatmaplatest-resubscribe-composite-key commit 5380391118

Frequently asked questions

npx skillmds@latest add maxrave-dev/flatmaplatest-resubscribe-composite-key