Chuck Stein
06/02/2023, 5:27 PMsheetContent
itself is? This test was passing fine before upgrading to compose 1.4Chuck Stein
06/02/2023, 5:32 PM@Composable
fun MyBottomSheet(bottomSheetTopBarViewState: TopBarViewState) {
ModalBottomSheetLayout(
sheetContent = {
TitleBar(bottomSheetTopBarViewState) // a breakpoint is hit here when bottomSheetTopBarViewState changes
// ...other sheet content goes here...
}
}
)
}
@Composable
fun TitleBar(bottomSheetTopBarViewState: TopBarViewState) {
Text(bottomSheetTopBarViewState.title) // a breakpoint is NOT hit here when bottomSheetTopBarViewState changes, and our assertion that the text is displayed fails because the node does not exist
}
If I pull the Text
composable up a level to the sheetContent
lambda, everything works fine and the test passes for some reason 🤔Chuck Stein
06/02/2023, 5:32 PM