-
Notifications
You must be signed in to change notification settings - Fork 407
fix(duplicate): fix #1081, load patch should also check the duplicate flag #1121
Conversation
Any new on this PR, it is highly expected fix for Angular Elements loaded in Angular applications. |
@JiaLiPassion Any update when this will be merged? I am in the same boat as @DanielNetzer and cannot use my Angular elements in Angular applications until zone.js can be loaded more than once. |
“The Future of Web Development”
https://medium.com/@daniel.netzer7/the-future-of-web-development-9e9ff1e64dfc
you can find a solution in this article
…On Fri, Sep 21, 2018, 18:04 oliverdavidt ***@***.***> wrote:
@JiaLiPassion <https://github.com/JiaLiPassion> Any update when this will
be merged? I am in the same boat as @DanielNetzer
<https://github.com/DanielNetzer> and cannot use my Angular elements in
Angular applications until zone.js can be loaded more than once.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1121 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AOP_JOXw4jQC2Lh_pWmj6gLNbt3mt_keks5udP_tgaJpZM4VlUwM>
.
|
@DanielNetzer, @oliverdavidt, I think we need to wait for a bit longer for the release.
|
Any chance this could be merged into master? Right now I have a fork with that fix manually added to master so that I can get this + the customElements V1 fix (#1133) but I'm not a big fan of having to manually add stuff and rebuild, I would feel more confident if I could at least just pull master and build. |
I am using this patch, still getting ZoneAwarePromise already been patched error |
I tried and had the same problem. ZoneAwarePromise already been patched. |
@rafagsiqueira , could you post a reproduce repo? Thanks! |
@rafagsiqueira, @vishnur-github, could you try this branch?
I test it with the following cases.
Everything work fine. |
With this version error has disappeared, but application went in infinite reload loop. |
@lexigren, could you provide a reproduce repo? And could you show me the stack trace of the infinite loop? |
I can't provide repo since it's private. It happens while I'm trying to use created with angular Pixie image editor inside another angular app, only in prod mode, during execucting polyfills, when polyfill "0TWp" (which is import 'zone.js/dist/zone') runs. Instead of usual "Zone already loaded" after its execution, and bunch of executions "Zone.__load_patch" whole process starts allover again without any error. Edit: |
fix #1081,
__load_patch
should also checkduplicate flag
.So when we load
zone.js
multiple times, it will not throwZoneAwarePromise already been patched
error.