How can we call WebView.destroy() within Compose? ...
# compose
b
How can we call WebView.destroy() within Compose? When using AndroidView+WebView. Does it even matter?
z
Use
DisposableEffect
. It’s a little boilerplatey, I thought someone filed an issue a while back for
AndroidView
to support a disposal hook itself but I’m struggling to find it.
I guess it was never filed. Until now: https://issuetracker.google.com/208439888
❤️ 2
210 Views