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
version: 1.0.0-beta.4
For some reason in newly created angular-cli project, if resolver returns promise that resolves asynchronously, second transition to same state appearing without waiting for promise result.
export function twoRouteResolver() {
return new Promise(resolve => {
setTimeout(() => {
console.log('%cchecking', 'color:red;');
console.log('resolving');
resolve();
}, 1000);
});
}
Without timeout second transition does not appear.
The HashLocationStrategy invokes the registered onPopState callback for both the popState and hashChange events. This causes two transitions to be initiated.
version: 1.0.0-beta.4
For some reason in newly created angular-cli project, if resolver returns promise that resolves asynchronously, second transition to same state appearing without waiting for promise result.
Without timeout second transition does not appear.
Demo:
https://github.com/lexigren/UIRouterResolverProblemDemo
The text was updated successfully, but these errors were encountered: