You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
Even though navigateToRoute returns a promise, I can't seem to await it in the activate method. I can await it in any other function and it works perfectly, but when awaiting navigateToRoute in the activate method it hangs.
Expected/desired behavior:
Our TSLint expects all promises to be handled accordingly, so I figured I should be able to await it, like I do in other functions.
I'm submitting a bug report
major.minor.patch-pre
Please tell us about your environment:
Operating System:
Windows 10
Node Version:
8.11.3
NPM Version:
6.3.0
JSPM OR Webpack AND Version
webpack 4.1.1
Browser:
Chrome 69 | Firefox 61
Language:
TypeScript 2.9.2 - 3.0.3
Current behavior:
Even though navigateToRoute returns a promise, I can't seem to await it in the activate method. I can await it in any other function and it works perfectly, but when awaiting navigateToRoute in the activate method it hangs.
Expected/desired behavior:
Our TSLint expects all promises to be handled accordingly, so I figured I should be able to await it, like I do in other functions.
I have recreated the bug in a small project:
https://github.com/tomschluter/await-navigate-to-route
async activate() { await this.router.navigateToRoute('Contact'); }
The above is pretty much what causes the application to hang.
Unless it is intended, it currently isn't working how it should be.
The text was updated successfully, but these errors were encountered: