Hi. I'm getting `mutation attempt of frozen io.kto...
# multiplatform
s
Hi. I'm getting
mutation attempt of frozen io.ktor.client.request.HttpRequestPipeline@8275c448
on iOS.
r
Don’t put your client in an
object
. Kotlin `object`s are frozen on iOS.
AFAIK the fact the it freezes something in the pipeline is a bug, but with the current version you can’t have an
HttpClient
instance in an
object
.
o
just use top level
val
, and it will work everywhere (on the main thread, ofc)
👍 1
s
Thanks