Recycling of `GraphicsLayer` instances seems to br...
# compose-android
l
Recycling of
GraphicsLayer
instances seems to bring more problems than it solves. Switching from one composable to the other, new `GraphicsLayer`s show content of `GraphicsLayer`s from other composables that are no longer part of the composition… @Andrey Kulikov @Nader Jawad That's on API 33. I'll try to do a reproducer for Friday.
s
We've been reusing of GraphicsLayer instances for quite a few years now :) It is mostly the issue with the new GraphicsLayer impls, please report when you find the time.
a
hey! it is for sure solving problems we were seeing, and our whole test suite wasn’t able to reproduce the issue you are mentioning. please help us reproduce it so we can fix it for you. thanks
👀 1
fyi: there was another request for reuse causing rendering issue and we reverted it in https://android-review.googlesource.com/c/platform/frameworks/support/+/3137053
l
I need to wait for beta04, right?
a
yes, we should cherry pick it into a next release. or you can use androidx.dev snapshots for now. it was merged in build 11990767