GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — update to [email protected] by IgorMinar · Pull Request #22573 · angular/angular Conversation
Contributor
Bam! This PR is much bigger than typical RxJS code because of a unusual way we used RxJS in the past in order to reduce payload size and not introduce Observable.prototype patching due to Angular's use of RxJS.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
alfaproject
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistent quotes
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed. thanks
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
gkalpak
force-pushed
the
rxjs/v6-alpha.3
branch
3 times, most recently
from
aed6612 to
c0bf0ad
Compare
IgorMinar
commented
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For some reason this doesn't seem to work. The symptom I see is that the observable that subscribes to the result of
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where is it being called? My guess is you're handling the error somewhere else, because that function is pretty simple... basically
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. resolved via a fix of a bad import in rxjs
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
|
Hi @IgorMinar! This PR has merge conflicts due to recent upstream merges. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi @IgorMinar! This PR has merge conflicts due to recent upstream merges. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You can preview ec6ff11 at https://pr22573-ec6ff11.ngbuilds.io/. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ignore comments for simplification changes. Will tack on to an add-on PR.
I removed a couple TODOs & pushed a fixup commit. Looks good!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| expanded$, (rootSegmentGroup: UrlSegmentGroup) => this.createUrlTree( | ||
| rootSegmentGroup, this.urlTree.queryParams, this.urlTree.fragment !)); | ||
| return _catch.call(urlTrees$, (e: any) => { | ||
| const urlTrees$ = expanded$.pipe( |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We don't need the urlTree$ variable here anymore. Can be converted to:
return expanded$.pipe(map(...), (catchError(...));
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| expanded$, (rootSegmentGroup: UrlSegmentGroup) => | ||
| this.createUrlTree(rootSegmentGroup, tree.queryParams, tree.fragment !)); | ||
| return _catch.call(mapped$, (e: any): Observable<UrlTree> => { | ||
| const mapped$ = expanded$.pipe( |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Same here:
return expanded$.pipe(map(...), (catchError(...));
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
In fact, it's probably even easier to read as:
return this.expandSegmentGroup(this.ngModule, this.config, tree.root, PRIMARY_OUTLET)
.pipe(
map(...),
catchError(...)
);
And this saves needing to create the interim const variables. This applies above as well.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (e instanceof NoMatch) { | ||
| // TODO(i): this return type doesn't match the declared Observable<UrlSegmentGroup> - | ||
| // talk to Jason | ||
| return of (null) as any; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Remove as any & the comment (types should flow now).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| }); | ||
| return of (...routes).pipe( | ||
| map((r: any) => { | ||
| const expanded$ = this.expandSegmentAgainstRoute( |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
return this.expandSegmentAgainstRoute(...).pipe(catchError(...));
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| import {map} from 'rxjs/operator/map'; | ||
| import {mergeMap} from 'rxjs/operator/mergeMap'; | ||
| import {Compiler, InjectionToken, Injector, NgModuleFactory, NgModuleFactoryLoader} from '@angular/core'; | ||
| // TODO(i): switch to fromPromise once it's expored in rxjs |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
remove
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You can preview 8b0784e at https://pr22573-8b0784e.ngbuilds.io/. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You can preview 246285b at https://pr22573-246285b.ngbuilds.io/. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Recommend this goes to beta.0 instead.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi @IgorMinar! This PR has merge conflicts due to recent upstream merges. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
… we update cli to v6
|
You can preview ecfdbaa at https://pr22573-ecfdbaa.ngbuilds.io/. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
angular-in-memory-web-api is not yet compatible with rxjs v6 and rxjs v6 backwards compatibility package is not yet ready to be used.
the next step will be to update all of aio to 6.0.0-rc.0
|
You can preview 6427180 at https://pr22573-6427180.ngbuilds.io/. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.