How to work with subcontainer views in a stream

What is the intended way to navigate a subcontainer using Flow

on Android.

Let's say I have a couple Screens

where one works as a container screen - there I want to do some sub-navigation (changing part of that screen).

I think the screen should serve as temporary Flow.Dispatcher

and proxy servers for all commands Flow

. How to do it? By calling Flow.setDispatcher

, I am actually replacing the parent dispatcher that is not intended. I think creating a new instance is Flow

also discouraged, it must be a Single Singleton application.?

+3


source to share


1 answer


This is the scenario where https://github.com/square/flow/tree/master/flow-path was created.



Life is better if you have one instance of the application flow. We tried it in a different way, where the higher level thread has a screen that is the container for the nested thread and life is pretty complicated pretty quickly.

+1


source







All Articles