Been trying to get my ios stuff running again, but...
# decompose
a
Been trying to get my ios stuff running again, but having an issue w\
ObservableValue
when I navigate to another Child, it throws this exception, apparently when the previous child attempts to dereference it's state:
Copy code
Uncaught Kotlin exception: kotlin.native.IncorrectDereferenceException: illegal attempt to access non-shared com.arkivanov.decompose.value.MutableValueImpl@34e6e8 from other thread
but I'm not doing an explicit threading, and I'm changing state based on a button click, so should be main that this is all happening on.
also is there no way to include ObservableValue in the library? because it needs SwiftUI dependencies I'm guessing?
a
You are definitely accessible MutableValue from another thread, which is not supported. You can check the stack trace. Either it was created on a non-main thread and now accessed on the main thread, or vice versa.
Yeah, because of SwiftUI deps it can't be included, unfortunately.