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
How to use a state on recursive screens? #499
Comments
That sounds about right to get started! You can find similar ideas expressed in discussions about the old Router: To mix [UserVC,PostVC,ImageVC,UserVC,UserVC] in a stack, you might need an enum or express the commonality in a similar way |
Thank you for your comment! |
To be honest I'm not sure about which issue in particular it was, or if it was something that came up every now and then 🤔 https://github.com/ReSwift/ReSwift-Router/issues?q=is%3Aissue+is%3Aclosed+multiple So each same controller's route would need some "identifier" that is unique to disambiguate. Anything you find that can help other newcomers to ReSwift-Router in a position similar to yours, please consider taking notes and sharing the result in a PR for a readme or documentation example! |
https://www.jessesquires.com/blog/2022/12/15/powerful-navigation-api/ Possibly useful to let UIKit's nav controller handle the diffing and map an array of states to UIViewControllers |
For example, when you have
UserState
inViewControler
that displays a user and posts, what is the best practice to do?Can I implement something like below?
I am new to ReSwift and would appreciate any advice you could give me 🙇
The text was updated successfully, but these errors were encountered: