Wouldn’t memory leak if Context is provided as Com...
# compose
j
Wouldn’t memory leak if Context is provided as CompositionLocal like LocalContext(activity context by owner.context)? CompositionLocal values store in SlotTable, I know that SlotTable is just a linear array. In the case of an activity context, entering the array is a potential memory leak. Let me know if I’m misunderstood.
👍 3
a
When the activity is destroyed, the composition tied to the
ComposeView
in the activity, which includes the slot table, will be disposed.
🙏 1
j
oh, I didn’t see dispose. really thanks.
👍 2