Sanjeeviraj M
Sanjeeviraj M
Found a solution from okhttp source itself. It works fine. Users aren't facing the crash after adding this line before calling chain.proceed again. response.body?.closeQuietly() https://github.com/square/okhttp/blob/b9267b0ce7a11440ccdd6b3e7d70c4ab9710a144/okhttp/src/jvmMain/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt#L101 close the previous response like...
@kurtsson it might cause out of memory exception, you can use BoxWithConstraints to get available size of composable and reduce resolution of bitmap before setting it to state
Created a POC. https://github.com/sanjeevirajm/GlideCompose/ It does these two things, Properly cancels the image request Gets the target size using BoxWithConstraints and loads image only for the target size
I have used it in LazyColumn. It works well. But not sure about large images. Ideally it shouldn't consume much memory since it adds glide target size based on the...
@ndriqimh Try passing a placeholder value and check whether the issue persists. If you don't have any placeholder drawable, pass an empty transparent drawable. I think it will work fine.
or it is better to move to Java serializable class. it will still work in K2 compiler because it doesn't need annotation, code generation, ksp
@moffpage Java serialisation and Parcelable has a major advantage - 1. bundle.putSerializable()/putParcelable() - it will just keep the object reference in memory and will do actual serialization only when activity...
Alternative from Jetbrains - Compose multiplatform beta now supports string resource sharing. https://github.com/JetBrains/compose-multiplatform/releases/tag/v1.6.0-beta01