Open caesar84mx opened 4 years ago
hi! Error show that something was freezed. i found that issue - https://github.com/cashapp/sqldelight/issues/1390#issuecomment-507914279
Adding a listener on native means it'll freeze the listener you pass in. Listeners in general on native absolutely work, with the caveat that the listener will get frozen when it's passed in (as well as anything it references).
LiveData
implementation now not support concurrency calls, but later it should be added.
for now you can try use ThreadLocalRef as here - https://github.com/cashapp/sqldelight/issues/1390#issuecomment-513060205
CommonDatabase.kt:
Repo.kt:
ViewModel.kt:
When using
startObserving()
method from iOS, the app crashes with the following: