before? I have another Composable placed inside its
sheetContent
, to show as its content, and a primary Composable that will be shown as the rest of the page
when I come to test the main page, the Composable sitting inside the
ModalBottomSheetLayout
as the primary thing to be shown in the page, and I check for the existence of some string (which also exists in the sheet WHEN it opens), Im getting that there’s 2 instances of that string, it’s reading the contents of the sheet without it having been opened yet
oday
12/16/2022, 2:34 PM
it’s opening the very first composable that is passed to it inside
sheetContent
it is certainly expanding that sheet before any state changes or anyone requests it to open even
oday
12/16/2022, 2:41 PM
100% confirmed that it’s doing this, removed all code that has anything to do with opening or closing the sheet, still I get 2 results of that string, only other string like that is inside the sheet that should be closed at the time of the test
Both the main content and sheet content are always being composed, yes. Just like drawers, pagers (for the next page), and lazy lists (for prefetched items), etc.
o
oday
12/16/2022, 3:10 PM
So my test should just treat that as reality and take that into consideration
oday
12/16/2022, 3:10 PM
If I fall into the situation I mentioned above, it means it’s working