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

Chained navigation request #72

Open
vkatz opened this issue Oct 8, 2024 · 1 comment
Open

Chained navigation request #72

vkatz opened this issue Oct 8, 2024 · 1 comment

Comments

@vkatz
Copy link
Contributor

vkatz commented Oct 8, 2024

Be able to call to set specific path from navController including sub-navControllers

EG:
navController.setPath(Root).then(Tabs).then(HomeTab,ProductTab).then(ProductDetails)
-->
1st nc opens Root screen
Root's screen inner NC(navController) opens Tabs
Tabs's NC put HomeTab in backstack and opens ProductTab
ProductTab opens ProductDetails

Pros:

  • easy to use with complex navigation

Cons:

  • will need to make dsl to generate tree
  • can not controll subtrees? (eg: what if i want to put smth inside HomeTab's NC)
@vkatz
Copy link
Contributor Author

vkatz commented Oct 15, 2024

Image
Basic idea is to create rout and allow to control flow of NavControllers

Pros: pretty simple syntax
Cons:

  • you need to know whole ierarchy of your nc-s (do not have solution it so need to agree with this limitation)
  • some one may try to do wired things rather then just navigation, option here is to make strict buider yet it going to be overcomplex
  • a bit complex structure of follow flow loging inside nested NavController as next one may not be event created when current receive route signal, need to make smth like pendingflow logic

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