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

Cannot step in child flow after using .multiple with .forwardToCurrentFlow, and others. #176

Closed
erginbilgin opened this issue Aug 4, 2021 · 1 comment

Comments

@erginbilgin
Copy link

erginbilgin commented Aug 4, 2021

When I'm giving control to multiple flows using a tabBar, after Flows.use, I have something like following (I tried both ExecuteStrategy's.):

return .multiple(flowContributors: [
            .contribute(
                withNextPresentable: tab1Flow,
                withNextStepper: OneStepper(
                    withSingleStep: Tab1Step.needsTab1
                )
            ),
            .contribute(
                withNextPresentable: tab2Flow,
                withNextStepper: OneStepper(
                    withSingleStep: Tab2Step.needsTab2
                )
            ),
            .contribute(
                withNextPresentable: tab3Flow,,
                withNextStepper: OneStepper(
                    withSingleStep: Tab3Step.needsTab3
                )
            ),
           .forwardToCurrentFlow(withStep: TabBarStep.tabBarIsReady)
        ])

In this case, I cannot register steps in sub flows. It only registers the initial steps I give in OneStepper but after that no steps are registered.

Everything works fine if I remove .forwardToCurrentFlow(withStep: TabBarStep.tabBarIsReady) from contributors.

As a thought, this might be related to #175

@erginbilgin
Copy link
Author

Looks like resolved in 2.12.4 with #175

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