Hello! What does ```java.lang.IllegalStateExceptio...
# compose-desktop
p
Hello! What does
Copy code
java.lang.IllegalStateException: LayoutCoordinates androidx.compose.ui.node.ModifierLocalConsumerNode@1d3e8489 is not attached!
means?
z
Something is probably trying to read from a
LayoutCoordinates
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.
Any time you’re reading a
LayoutCoordinates
from outside the
onPlaced
or
onGloballyPositioned
you got it from, you should be checking if it’s attached first.
p
Thanks! I suppose it is internally reading, cause in my code there are no such readings. I'll try switch to last stable version and check.
z
If you have the full stack trace you should be able to get a hint about what component is doing it. If it’s one of ours, please file a bug!