Skip to main content

composable

Attribute Macro composable 

Source
#[composable]
Expand description

Turns a function into a composable: its body runs inside a group keyed by the call site, and recomposition skips it while its arguments are unchanged. #[composable(no_skip)] always re-runs the body.

Composables are named in CamelCase, as in Jetpack Compose, so the generated function carries #[allow(non_snake_case)] and callers need no lint allowance of their own.