anyone worked with `ModalBottomSheetLayout` before...
# compose
o
anyone worked with
ModalBottomSheetLayout
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
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
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
i
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
So my test should just treat that as reality and take that into consideration
If I fall into the situation I mentioned above, it means it’s working
Or?