Fixed
Status Update
Comments
go...@jakewharton.com <go...@jakewharton.com> #2
Looks like this is done at HEAD. There's a Composition
factory function overload that does not take a key and skips the Compositions
map.
Is the intent to remove Compositions
completely? I only ask because its map will have problems in Kotlin/Native...
so...@google.com <so...@google.com> #3
Adam, is there anything actionable left on this ticket?
ad...@google.com <ad...@google.com> #4
Nope, we should be good here. Recomposers keep a record of known non-disposed compositions, there's a global record of active recomposers, but there's no WeakMap anymore. Everything is based on explicit disposal.
Description
The only way to create a
Composition
is through thecompositionFor
factory which goes through a staticCompositions
object which maintains a static weak map.Adam P has tentatively said that removing this was in the plans. This is mostly just a tracking bug. Bonus: This means the expect/actual for
WeakMap
can be removed.