The critical code seems to be ```Tab( text...
# compose
d
The critical code seems to be
Copy code
Tab(
        text = { Text(homeScreenTab.title) },
        selected = currentTab == homeScreenTab,
        onClick = { currentTab = homeScreenTab }
)
When I click on the tab, the exception occurs (but only if the content of the tab contains a TextField)
f
Hi, does it work when you use just string literal in Text?
a
I understand that we鈥檝e got the issue fixed now https://issuetracker.google.com/issues/169629547
will be available in alpha05
c
As explained in the bug the issue is due to a bug in the snapshot system when taking nested snapshots. There is no easy way to work around this issue once you encounter it as the steps involved to trigger it are not easily controlled. Any use, directly or indirectly, of sub-composition (which uses nested snapshots) can potentially trigger this or related issues. It is more likely to be encountered when using focusable components in a component's content which is produced using sub-composition. If you are running into this issue, the current recommendation is to either go back to alpha03 or wait until alpha05. The fix landed too late to make it into alpha04.
馃憤 2
g
@Chuck Jazdzewski [G] Is this fixed in alpha05?
Looks like these might have been the fixes? 1. c70f9a5Merge "Fix applying nested snapshots" into androidx-master-dev聽by Treehugger Robot聽路 2 weeks ago 2. 2d08e4aFix applying nested snapshots聽by Chuck Jazdzewski聽路 2 weeks ago
c
Yes. The fix for this is in 2d08e4aFix applying nested snapshots Sorry for the delayed response, I was on vacation last week.
馃榿 1