Fudge
07/29/2020, 6:07 AMTopLevelComponent {
val obj = Object()
InnerComponent {
useObj(obj)
}
}
Then, I do something that will cause TopLevelComponent
to recompose. I then rely on the fact obj
will be a newely initialized object. However, InnerComponent
will still keep an old version of obj
even after recomposition, because of optimizations. This is my theory. It seems like optimization is causing some very unnatural results.
I still don't know how this relates to the problems I had with remember/state but i'm sure it's related.