Pausing, navigating and resuming resolves the route
See original GitHub issuePausing the router, navigating and then resuming resolves the route, because it resumes before the listener callback (_onLocationChange
) is executed.
The workaround I have used is to resume with a delay.
router.pause();
router.navigate(some_route);
setTimeout(function () {
router.resume();
}, 500);
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Force Trolling Motor - Pausing and Resuming Navigation
Navigation stops, and the trolling motor returns to manual mode or maintains your position in anchor lock. Select Menu button > Follow Route...
Read more >allpro/react-router-pause - GitHub
The example below returns a promise to pause navigation while validating data asynchronously. If the promise resolves, navigation will resume unless false is ......
Read more >How to pause the route change in navigationStart router event
Yes, by using resolver you can achieve this,. You need to create resolver service first which will implement "Resolve" interface.
Read more >Turning off device during ride failed - Hammerhead
The unit started up with a message "Recovery ride data" which I thought sounded good, but then my ride data was gone and...
Read more >Pause and resume all or multiple workflows - ServiceNow Docs
We use cookies on this site to improve your browsing experience, analyze individualized usage and website traffic, tailor content to your preferences, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@krasimir sounds awesome - put it up into a new branch if you need help with anything.
Thanks for reporting. I’ll see what I can do.