Event Not State Edge For One Shot Effects

Fire a one-shot celebration effect from the click that caused it, never from the state that click produced — an effect watching a boolean for a false→true edge cannot tell a tap from data arriving a beat later, so moving to an already-marked record fires the same edge. Covers the @Stable holder that owns live effects, judging the meaning at tap time, why the previous-value variable is a second source of truth, and keeping concurrent effects additive. Use when an effect plays by itself while skipping between records, when it celebrates something the user did not do, or when the first genuine tap after a screen returns is silently swallowed.

maxrave-dev Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/event-not-state-edge-for-one-shot-effects commit 93f4e81834

Frequently asked questions

npx skillmds@latest add maxrave-dev/event-not-state-edge-for-one-shot-effects