https://kotlinlang.org logo
#compose
Title
# compose
a

Arkadii Ivanov

07/24/2022, 12:29 PM
I'm playing with the new
LookaheadLayout
, and it crashes if there is
LazyColumn
inside `LookaheadLayout`'s content:
Copy code
java.lang.IllegalStateException: subcompose can only be used inside the measure or layout blocks
Is it not supported yet, or am I doing something wrong?
s

shikasd

07/24/2022, 2:00 PM
Don't know if it is supported yet, can you file a bug against LookaheadLayout to confirm/track the issue?
a

Arkadii Ivanov

07/24/2022, 2:59 PM
z

Zach Klippenstein (he/him) [MOD]

07/24/2022, 5:34 PM
I believe
LookaheadLayout
currently explicitly does not support subcomposition, but I'm not sure it's expected to crash.
d

Doris Liu

07/26/2022, 12:22 AM
Thanks for filing the issue. SubcomposeLayout isn't supported yet. It's mentioned in the kdoc. I'm currently working on building the support. 🙂
34 Views