saket
11/16/2021, 4:50 PMYou must dispose of IsolateState instances to avoid memory leaks.
russhwolf
11/16/2021, 5:40 PMStableRef
inside StateHolder
, but I don't think any of the collections expose a way to clear it. Are you having specific issues or just looking for best practice? Kevin knows that stuff much better than me but he's on vacation.russhwolf
11/16/2021, 5:40 PMsaket
11/16/2021, 6:35 PMAre you having specific issues or just looking for best practice?best practice! I've been using iso collections in my project but I never dispose them. I'm now thinking if that's something I should be doing. this discussion originally started here where I'm trying to convince @evant to use iso collections in kotlin-inject: https://github.com/evant/kotlin-inject/issues/167#issuecomment-970449637
russhwolf
11/16/2021, 6:47 PMfreeze()
calls that exist in your code. So that's probably why you still see InvalidMutabilityException
.russhwolf
11/16/2021, 6:47 PMrusshwolf
11/16/2021, 6:47 PMsaket
11/16/2021, 8:38 PM