Hello Does anyone know why this the line where a c...
# flow
s
Hello Does anyone know why this the line where a call the Person constructor is never called?
Copy code
suspend fun getData(): Person {
    return dataStore.data.catch {
        throw NoCacheFoundException()
    }.map { preferences ->
        val firstName = preferences[firstNamePref] ?: "John"
        val lastName = preferences[lastNamePref] ?: "Doe"
        Person(firstName, lastName)
    }.single()
}
Thanks