Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about the flatMapMerge() operator #9

Open
aliumujib opened this issue Mar 8, 2020 · 0 comments
Open

Question about the flatMapMerge() operator #9

aliumujib opened this issue Mar 8, 2020 · 0 comments

Comments

@aliumujib
Copy link

Hello Garima,

Your repo is a great example of using Kotlin Flows with the MVI architecture, so thanks for it 😃. I have a quick question though. In processActions () method of your CharactersViewModel . You demonstrated two approaches of mapping from actions to results. When using the streaming approach in actionToResultTransformer(), I noticed that my actionsFlow suddenly returns emits more than one action which in turn executes more than one network call. So flowOf("A") emits "A", "A" or sometimes "A","A","A" when I pass it into actionToResultTransformer() but behaves normally when I use the non streaming approach. Is there a reason for this behaviour and how can it be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant