Reorder Modifier to come as first argument #56
NikolaDespotoski
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given this stateless composable
ComposeParameterOrder
kicks in and warns that theModifier
param is misplaced it should be as in the order stated in the rule (params without defaults, modifiers, params with defaults and optionally, a trailing function that might not have a default param).Modifier
argument should be place before last param which is a function param, but also after few other function params as well.If move the
Modifier
as before last function param, the rule is fulfilled.How this rule in this particular case improves the code?
Is this possible to make the rule lenient on
Modifier
params and be first param?Beta Was this translation helpful? Give feedback.
All reactions