eygraber
01/17/2023, 10:33 PMremember? - https://issuetracker.google.com/issues/265824770Albert Chang
01/18/2023, 1:42 AMReadOnlyComposable in a ReadOnlyComposable function. However, collectAsState() is not marked with ReadOnlyComposable.
From the doc of `ReadOnlyComposable`:
This is not safe unless the body of the function and any functions that it calls only executes "read" operations on the passed in composer.
remember is a "write" operation because it stores the value into the composer's slot table.Albert Chang
01/18/2023, 1:43 AMeygraber
01/18/2023, 1:46 AMremember. But first I tried taking out ReadOnlyComposable and the exception still happens.
It was weird because I usually get a warning in the IDE about using ReadOnlyComposable and calling something that doesn't, but that wasn't there. Maybe because it was a propertyZach Klippenstein (he/him) [MOD]
01/18/2023, 4:22 PM