Reusable Nested Flows #2815
Unanswered
TiagoSantosSilva
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@p4checo keeping you on the loop on this one - this is basically what you also were trying to achieve in your previous post, right? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
So I've been trying to create a Flow that could be reusable.
Say I have 3 flows:
Flow A
Flow B
Flow C
In Flow A I have:
FlowAScreen1
FlowAScreen2
FlowAScreen3
In Flow B I have:
FlowBScreen1
In Flow C I have:
FlowCScreen1
FlowCScreen2
FlowCScreen3
They're all displayed using a NavigationStack and therefore each screen is pushed on top of eachother.
If I wanted to "inject"
Flow C
in eitherFlow A
orFlow B
, would that be possible? Say for example that I wanted to displayFlow C
(its 3 screens) inFlow A
on top ofFlowAScreen2
. Could this be done in a way thatFlow C
is modular enough that I can also plug it intoFlow B
and push it on top ofFlowBScreen1
if I wanted to?The code that I currently have is the following
Flow A
Flow C
I'm having no success with this though. I've been able to append other screens that are not a "Flow" that contains a NavigationStack and basically serves as a coordinator.
Would there be a way to achieve this or something similar in a way that each flow is independent and I can just plug them in into other parent flows as needed?
Beta Was this translation helpful? Give feedback.
All reactions