Skip to content
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

Duplicated modifier for decorated content #823

Merged
merged 3 commits into from
Aug 26, 2023

Conversation

ashdavies
Copy link
Contributor

Decorated content probably shouldn't take the user supplied modifier, as this will result in the modifier being applied twice (once to Layout in decorated AnimatedVisibility.Layout and again in the user supplied content)

@ashdavies
Copy link
Contributor Author

The thing I'm concerned about here is that it's not obvious to the consumer that their Modifier is being applied to the AnimatedVisibility composable, an implementation detail.

@ZacSweers ZacSweers added this pull request to the merge queue Aug 26, 2023
Merged via the queue into slackhq:main with commit 644e5b3 Aug 26, 2023
@ashdavies ashdavies deleted the a/decorator-modifier branch August 26, 2023 17:28
ashdavies added a commit to ashdavies/circuit that referenced this pull request Sep 14, 2023
Decorated content probably shouldn't take the user supplied modifier, as
this will result in the modifier being applied twice (once to `Layout`
in decorated `AnimatedVisibility.Layout` and again in the user supplied
content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants