sqldelight icon indicating copy to clipboard operation
sqldelight copied to clipboard

Changes in the database are not observed when using a context other than Dispatchers.Main

Open PavelMesicek opened this issue 1 month ago • 0 comments

SQLDelight Version

2.0.2

Application Operating System

Android

Describe the Bug

The function observes changes only using the Dispatchers.Main

fun getActionFlow(id: Long): Flow<Action> { val actionFlow = database.actionEntityQueries.selectActionById(id).asFlow().mapToOne(Dispatchers.Main)

Similar issue on StackOverFlow

PavelMesicek avatar Jun 15 '24 13:06 PavelMesicek