Update Compose Configuration docs for UseDataClass #5220
-
Issue
@Stable
class FooState(
val fooA: String,
val fooB: Int
) {
var fooC by mutableStateOf(false)
var fooD by mutableStateOf<Float>(0f)
} (see this common pattern also showcased in android/compose-samples.) SuggestionUpdate Let me know if this suggestion makes sense, happy to open a PR with suggested change! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
That's what we did at Tinder. I wonder if the the main maintainers have an opinion about it. |
Beta Was this translation helpful? Give feedback.
-
Maintainer here: |
Beta Was this translation helpful? Give feedback.
-
Great, thanks! Will have one up |
Beta Was this translation helpful? Give feedback.
-
I would personally suggest that |
Beta Was this translation helpful? Give feedback.
Maintainer here:
I’d say go for it. We always appreciate PRs from the community helping to form some best practices. This way, the detekt documentation improves incrementally.