navigateToRoute return signature change - no longer a Promise?
See original GitHub issue- Overview of the Issue: router navigateToRoute() previously has a return signature type of
Promise<PipelineResult | boolean>
, thenNavigationResult
and most recentlyboolean
(version 1.7.1). - Motivation or Use Case:
- Upgrading from earlier versions to latest results in build failure in projects enforcing tslint rule “await-promise”.
- Code relying upon navigateToRoute as an awaitable function require refactoring
- Library Name and Version(s): aurelia-router, router.ts version 1.7.1 (current)
- Browsers and Operating System: N/A (build issue)
- Reproduce the Error: Build an application with lines below using aurelia-router version 1.7.1 and tslint “await-promise” rule turned on
- Related Issues: None found
- Suggest a Fix: Revert return signature change, or explain reason for change to return type
boolean
.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:15 (6 by maintainers)
Top Results From Across the Web
navigateToRoute return signature change - no longer a Promise?
Overview of the Issue: router navigateToRoute() previously has a return signature type of Promise<PipelineResult | boolean> , then NavigationResult and most ...
Read more >Aurelia - waiting for a promise to return in the router prerender ...
Longer version: I have a prerender step in my router that checks whether the user is enabled for a particular module before rendering...
Read more >Router - Angular
A handler for errors thrown by Router.parseUrl(url) when url contains an invalid character. The most common case is a % sign that's not...
Read more >Details on using e-signatures for certain forms - IRS
Understanding the importance of electronic signatures to the tax community ... for Change in Accounting Method;; Form 3520, Annual Return To ...
Read more >Angular Router: Navigation Using RouterLink, Navigate, or ...
navigate and Router.navigateByUrl . Both methods return a promise that resolves to true if the navigation is successful, null if there's no ......
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
Thanks for the initial investigation @davismj
Ping @davismj