Hi guys, just started to using - Flows in SwiftUI ...
# touchlab-tools
i
Hi guys, just started to using - Flows in SwiftUI (preview) but looks there’s a issue when select the list item after list all the data from List view. you can see the data was goes to empty. but use async function no problem. am i missing something?
Copy code
@MainActor
    private func startObservingQuickCommandsUpdates() async {
        for await contextTaskModifiers in contextTaskModifiersViewModel.contextTaskModifiers {
            self.contextTaskModifiers = contextTaskModifiers
        }
    }
and flow by use sqldelight
Copy code
override fun findAllAsFlow(): Flow<List<ContextTaskModifier>> {
        return dao.findAllAsFlow().map { entities ->
            entities.map { it.toDomain() }
        }
    }
t
That's interesting, there could be a bug in the
Observing
implementation. Could you open an issue at https://github.com/touchlab/SKIE/issues and include a reproducer? Thank you!
i
❤️ 1
thx