-
Notifications
You must be signed in to change notification settings - Fork 392
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
Multiple Off-Platform LWC's on one page #4326
Comments
Hi @ReichPhilipp, thanks for reaching out. A few suggestions:
Based on the description, it is not clear to me what the issue is, but I am suspecting that it may be related to Angular and the usage of Zone.js based on the stacktrace. |
Thanks a lot for the answer. ❤️ i already added the i also had the feeling/idea regarding zone.js. i created a minimal version of all. That's what i tested:
from my point of view it's a minimal implementation for off-platform LWC's . :) |
Are you loading two copies of LWC on the same page? The error is thrown here: lwc/packages/@lwc/synthetic-shadow/src/faux-shadow/shadow-root.ts Lines 78 to 80 in 0574343
...and I'm not sure how this is possible otherwise. Can you share your minimal repro? |
i created a minimal version of the LWC-Build-Repo. Hopefully it helps... i will delete this repo in the future or will explain a workaround/solution there. depends ;) |
@ReichPhilipp I'm sorry, but I don't understand the repro steps. Could you please provide a repro and the set of Bash commands required to get the working repro up and running? Or else use something like stackblitz.com ? |
I updated the description.. Thank you for your commitment |
I'm sorry, I'm still completely lost reading the directions. If this is an OmniScript-specific issue, then I would recommend opening a Salesforce case. |
BTW if you are willing to migrate to native shadow DOM then that may also resolve your issue. |
Hey team,
I have been working on the problem that I want to remove a LWC from the DOM and then add another LWC.
This is causing me some problems with the syntheticShadowDom. In the screenshot you can see that the previous component is used when searching for the parentNode.
Idea is to:
load LWC1 -> Do something -> Unload LWC1 -> load LWC2 -> Do Something -> Unload LWC2 -> ...
Projectsetup:
i try to integrate the Off-Platform LWC's in an angular application. which works fine for single LWC.
Remove the LWC from DOM doesnt work. Looks like that the synthetic shadowdom is still there. How can i remove a LWC from a page?
I am quite desperate and have no further ideas
Thanks
Kind regards
Philipp
The text was updated successfully, but these errors were encountered: