Assigned
Status Update
Comments
ti...@google.com <ti...@google.com> #2
Also doesn't work in AS 2024.3.2 Canary 4 and Compose 1.8.0-beta01
an...@google.com <an...@google.com> #3
Andrei: Is this the same as
al...@google.com <al...@google.com> #4
Triage notes: Needs investigation. Assigning for later.
al...@google.com <al...@google.com> #5
Could you share the AppScaffoldTopBar
function that fails here? This seems different from
ch...@google.com <ch...@google.com> #6
Reconstructed from IR:
@Composable
fun AppScaffoldTopBar(
showBackArrow: Boolean,
showSearch: Boolean,
title: String?,
onBackClick: () -> Unit,
modifier: Modifier = Modifier,
actions: ImmutableList<AppScaffoldNavigationAction>
) {
if (!showSearch) {
TitledTopAppBar(
title = title,
showBackArrow = showBackArrow,
modifier = modifier,
actions = actions,
onBackClick = onBackClick
)
} else {
TopAppBar(
title = {
// Composable lambda for title
AppScaffoldTopBarTitle(showBackArrow)
},
modifier = modifier,
navigationIcon = {
// Composable lambda for navigation icon
AppScaffoldTopBarNavigationIcon(showBackArrow, onBackClick)
},
actions = {
// Composable lambda for actions
AppScaffoldTopBarActions(actions)
}
)
}
}
This seems /extremely/ weird to me, because showSearch
is just a regular parameter that is used in function body only once. We need more context about surrounding code to figure out why it crashed the compiler.
ti...@google.com <ti...@google.com> #7
sure i can paste more source. let me see what I can give you. do you need internals or externals?
Description
There is an extra composition when running the following snippet.
More specifically, Expect: 1 recomposition after
foo.prop
changes. Actual: 2 recompositions