question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pausing, navigating and resuming resolves the route

See original GitHub issue

Pausing 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:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
mathiasrwcommented, Apr 2, 2018

@krasimir sounds awesome - put it up into a new branch if you need help with anything.

2reactions
krasimircommented, Dec 3, 2017

Thanks for reporting. I’ll see what I can do.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found