ReSwift-Router icon indicating copy to clipboard operation
ReSwift-Router copied to clipboard

How to dimiss a modal navigation stack with a new Route

Open avdwerff opened this issue 9 years ago • 4 comments

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 avatar Dec 06 '16 20:12 avdwerff

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

adriaan avatar Jan 05 '17 06:01 adriaan

Same issue here, any updates on it?

  • ReSwift (4.0.1)
  • ReSwiftRouter (0.6.0):

halonsoluis avatar Apr 01 '19 10:04 halonsoluis

This also has been an issue for us.

BergQuester avatar Apr 06 '22 22:04 BergQuester

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

DivineDominion avatar Apr 08 '22 08:04 DivineDominion