Is it possible to transform from SharedFlow<typ...
# flow
m
Is it possible to transform from SharedFlow<typeA> to SharedFlow<typeB> without introducing a new scope? A standard transform() converts it to a Flow<typeB>
j
Could you
shareIn
the
Flow<B>
, but provide as its parameter the same scope used to create
SharedFlow<A>
?
m
there have been some issues raised about similar ideas before, but unfortunately most
StateFlow
and
SharedFlow
methods will convert them back to a
Flow
https://youtrack.jetbrains.com/issue/KT-45502
m
thanks for the info.