Skip to content

Commit

Permalink
Remove broken link to Modifier.composed{} (#306)
Browse files Browse the repository at this point in the history
Modifier.composed {} section has been removed from the Compose API guidelines
  • Loading branch information
shahzadansari authored Mar 16, 2024
1 parent 28d7f75 commit ca3dff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ Using `@Composable` builder functions for modifiers is not recommended, as they

Composed modifiers may be created outside of composition, shared across elements, and declared as top-level constants, making them more flexible than modifiers that can only be created via a `@Composable` function call, and easier to avoid accidentally sharing state across elements.

More info: [Modifier extensions](https://developer.android.com/reference/kotlin/androidx/compose/ui/package-summary#extension-functions), [Composed modifiers in Jetpack Compose by Jorge Castillo](https://jorgecastillo.dev/composed-modifiers-in-jetpack-compose), [Custom Modifiers](https://developer.android.com/jetpack/compose/custom-modifiers), and [Composed modifiers in API guidelines](https://github.com/androidx/androidx/blob/androidx-main/compose/docs/compose-api-guidelines.md#composed-modifiers)
More info: [Modifier extensions](https://developer.android.com/reference/kotlin/androidx/compose/ui/package-summary#extension-functions), [Composed modifiers in Jetpack Compose by Jorge Castillo](https://jorgecastillo.dev/composed-modifiers-in-jetpack-compose) and [Custom Modifiers](https://developer.android.com/jetpack/compose/custom-modifiers)

Related rule: [`ComposeComposableModifier`](https://github.com/slackhq/compose-lints/blob/main/compose-lint-checks/src/main/java/slack/lint/compose/ModifierComposableDetector.kt)

Expand Down

0 comments on commit ca3dff9

Please sign in to comment.