-
Notifications
You must be signed in to change notification settings - Fork 29
Preserve query params with onLoad guard #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d4d7ca3 to
bb7394a
Compare
e0e4fbb to
7926bfe
Compare
| // Passing function produces 'Error: Runtime compiler is not loaded' for prod build. Passing string fixes the issue. | ||
| // See https://github.com/angular/angular-cli/issues/10582 | ||
| loadChildren: () => import('./lazy-load/lazy-load.module').then(mod => mod.LazyLoadModule), | ||
| //loadChildren: './lazy-load/lazy-load.module#LazyLoadModule', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing function produces Error: Runtime compiler is not loaded for prod build for Angular 7.
Passing string fixes the issue.
See angular/angular-cli#10582
test/e2e/util/waitUtil.js
Outdated
| console.log('[DEBUG] Console: ', await browser.getLogs('browser')); | ||
| console.log('[DEBUG] Body: ', body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added debug to catch errors like Error: Runtime compiler is not loaded above
trigger error . . .
7926bfe to
87f5790
Compare
Resolves #97
Internal ref: https://oktainc.atlassian.net/browse/OKTA-521161
onLoadguard should not get redirect URL fromsegmentsas it does not have query params. Insteadrouter.getCurrentNavigation()should be used.