ubu
03/01/2023, 11:43 AMoverride val view: Flow<WidgetView> = combine(
expandedBranches, isWidgetCollapsed
) { paths, isWidgetCollapsed -> Pair(paths, isWidgetCollapsed)
}.flatMapLatest { switchToNewFlow() based on Pair }
I think that creating a pair is kind of redundant. But every time either of these two flows emits a new value, I need to switch to a different flow. Thanks!Chris Fillmore
03/01/2023, 12:19 PMcombineTransform
does return a Flow