LaunchedEffect(Unit) runs once, and that is usually the wrong once
Keyed to Unit means once per composition entry — not once per screen visit, and not once per user.
We use Google Analytics to see which pages help people. No ads, no profiles. Privacy Policy
Compose, Kotlin, and multiplatform work — the mechanism under the symptom.
229 posts
Keyed to Unit means once per composition entry — not once per screen visit, and not once per user.
Compose's autofill is a semantics property on a text field. Declaring content types lets password managers and the platform fill forms correctly, and omitting it is why users abandon sign-up.
Without a key, item identity is positional — so an insert at the top reuses every slot's state for the wrong item.
padding then clickable gives a different touch target from clickable then padding — and both look identical.
Compose re-executes functions whose inputs changed. An unstable parameter means all of them.
A custom font covers a subset of Unicode. Everything outside it falls back, and the fallback decides how your app renders emoji, non-Latin scripts and symbols — usually without anyone checking.
The native test binary runs on a device, so a missing simulator reads like a toolchain problem.
Decode, cache and memory pressure are platform concerns, and the composable that hides them decides your scroll performance.
Flags that differ per platform at the same moment produce bug reports nobody can reproduce.
Gradle metadata decides which variant each target gets. A library with no native artifact fails at link, not at resolution.
Android has a system back gesture with an owner. iOS has a navigation controller. A shared back stack answers to both.
A processor sees one compilation at a time. Generating into commonMain is a race you win by accident.