Created
February 28, 2021 12:44
-
-
Save raulh82vlc/72bfb4f524bc384dd558e2dda2ac828e to your computer and use it in GitHub Desktop.
SearchViewDelegate's StateFlow propagation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ActivityScope | |
class SearchViewDelegate @Inject constructor( | |
private val presenter: SearchTweetPresenter, | |
@Named("CoroutineUIScope") private val scope: CoroutineScope | |
) { | |
// ... | |
fun getStateFlow(): StateFlow<TweetsUIState> = presenter.stateFlow | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment