Have you ever met this error in wear-compose 1.0.0...
# compose-wear
b
Have you ever met this error in wear-compose 1.0.0-alpha21 and accompanist pager(above 0.21.3-beta) environment?
Copy code
java.lang.IllegalArgumentException: Inconsistency between the count of nodes tracked by the state (0) and the children count on the SubcomposeLayout (2). Are you trying to use the state of the disposed SubcomposeLayout?
I thinks it is a same issue on compose issueTracker accompanistIssue I need version 1.0.0-alpha21 to use edgeSwipToDismiss in my pagerScreen. According to the issue tracker above, it seems that the version of compose need downgrade. Does anyone know the solution?
j
Yeah the issue seems to have been solved in compose 1.2.0-beta08 - so I assume this is an issue with dependencies in Accompanist not having been updated yet - https://issuetracker.google.com/issues/229752147
b
@John Nichol Oh... Then, should I wait for the latest version of accompanist-pager regardless of the version of wear compose?
j
Hard to advise without knowing project structure and versions being used. I would be checking to see which versions of Compose Alpha's are being used by your project - this issue seems to have been resolved with the latest Compose Alpha - so if you are still seeing issues there are two options, 1) something is in your project or its dependencies is still pulling in the old version or 2) the bug isn't fixed 😔. @yschimke you were seeing this issue with the previous alpha for one of your projects - are you seeing it resolved now with latest core Compose alpha?
y
Not all the time. Havent seen recently. But I remember thinking 1.2.0-Alpha08 of compose was risky because of it. But low confidence on that being the exact circumstances.
z
Wasnt this issue introduced in compose 1.2.0-beta08? https://issuetracker.google.com/issues/229752147