PHondogo
04/18/2022, 2:49 PMjava.lang.IllegalStateException: LayoutCoordinates androidx.compose.ui.node.ModifierLocalConsumerNode@1d3e8489 is not attached!
means?Zach Klippenstein (he/him) [MOD]
04/18/2022, 4:11 PMLayoutCoordinates
without checking that isAttached
is true. A LayoutCoordinates
will be detached when its node is not placed, for example, or after it is removed from the composition.Zach Klippenstein (he/him) [MOD]
04/18/2022, 4:12 PMLayoutCoordinates
from outside the onPlaced
or onGloballyPositioned
you got it from, you should be checking if it’s attached first.PHondogo
04/18/2022, 4:17 PMZach Klippenstein (he/him) [MOD]
04/18/2022, 4:36 PM