Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce compose.ui dependency and add Modifier to Ui.Content() #422
Introduce compose.ui dependency and add Modifier to Ui.Content() #422
Changes from 14 commits
4b4e2b2
e5d5b15
c47f81d
2a0f0d1
e1864ff
746cc91
1abdbac
8ece3c7
efa5c3b
ef561e6
09b2b9d
d760ff7
9704df1
3a2e850
b742eca
50a9b1c
a326a27
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the IDE is complaining that all of these either don't match a regex or contain an "_" in the name.
FACTORY
is ok which I assume is because it's aconst
. Can we suppress or rename these to address the warnings?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the warning? Mine is fine with it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking ahead: I think we should refactor this method (and maybe others in this file). It's pretty long and unwieldy right now :-\
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note for the future: this is matching the previous behavior, but also... does this kind of situation even need to use circuit vs just being a regular composable function? I think it only matters if you have a presenter with no state but can receive UI events, which we currently don't support doing without a state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought: I could see someone reading the generated code and getting confused by a param of type
CircuitUiState
. I'm wondering if it might make sense to createobject NoState : CircuitUiState
and use it here instead.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unless we promote NoState to be a public and reusable type, I don't think it makes much of a difference. I have wondered if theres room for a
class StaticState<UiEvent : CircuitUiEvent>(val eventSink: (UiEvent) -> Unit)
that could be usefulThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
open to good url shorteners that aren't ephemeral!