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

How to dimiss a modal navigation stack with a new Route #49

Open
avdwerff opened this issue Dec 6, 2016 · 4 comments
Open

How to dimiss a modal navigation stack with a new Route #49

avdwerff opened this issue Dec 6, 2016 · 4 comments

Comments

@avdwerff
Copy link

avdwerff commented Dec 6, 2016

Imagine a navigation controller which gets presented and contains multiple viewcontrollers, which are pushed because of a Route constructed out of Route identifiers with respect to some user navigation flow, e.g. the route might be; [root, nav, vcA, vcB, vcC].
Popping one viewcontroller is achieved by dispatching a SetRouteAction, with for example a new route, e.g. [root, nav, vcA, vcB].
This works fine, but if for example the user wants to dismiss the presented viewcontroller, the route should be for this example; [root].
However doing so, will just pop (animated) each viewcontroller and then dismiss the presented viewcontroller.
What will be a good way to get the presented viewcontroller dismissed in one time with a route action? I was thinking of using the SpecificRouteData option... but maybe it is better to just dismiss the presented viewcontroller and then update the route path..
any ideas?

@avdwerff avdwerff changed the title How to pop a modal navigation stack with a new Route How to dimiss a modal navigation stack with a new Route Dec 6, 2016
@adriaan
Copy link

adriaan commented Jan 5, 2017

Facing the same issue. Will post here if I find a solution.

@halonsoluis
Copy link

Same issue here, any updates on it?

  • ReSwift (4.0.1)
  • ReSwiftRouter (0.6.0):

@BergQuester
Copy link
Contributor

This also has been an issue for us.

@DivineDominion
Copy link
Contributor

I'm not using the Router; what do you think could be a solution here?

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

5 participants