Scoped Composable Shadows The Top Level One

Inside a layout scope, a scope-extension composable of the same name wins over the top-level one — silently, since both compile — so a call written for the plain version gets the scoped version's defaults and layout behaviour; covers fully qualifying to force the top-level one, `this@Scope.` to force the scoped one, and why outer scopes still apply from inside a nested layout. Use when an appear/disappear animation expands or collapses its parent instead of fading in place, when a composable behaves differently after being moved into a column or row, or when a call resolves to an overload you did not choose.

maxrave-dev Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/scoped-composable-shadows-the-top-level-one commit 1e9aecb319

Frequently asked questions

npx skillmds@latest add maxrave-dev/scoped-composable-shadows-the-top-level-one