apex-enterprise-patterns / force-di

Generic DI library with support for Apex, Triggers, Visualforce and Lightning
BSD 3-Clause "New" or "Revised" License
229 stars 100 forks source link

Calling LWC #49

Open dinobrinas opened 5 years ago

dinobrinas commented 5 years ago

Hi, @ImJohnMDaniel - Good day! I would like to ask if it's possible to use LWC for DI. We are blocked because we cannot call LWC from LComponent because LWC doesn't have auraID to call with. IF it's possible to use LWC for DI, How can we achieve it via code? OR things that we need to consider updating your code to apply to call of LWC?

Cheers!

Thanks and regards, Dino Brinas

douglascayers commented 5 years ago

I’m not a LWC expert, but I don’t recall that dynamic creation of them is supported like is possible with Aura components

https://salesforce.stackexchange.com/questions/243876/dynamic-component-creation-in-lightning-web-components

lukethacoder commented 2 years ago

lwc:dynamic allows for this, but is only available off platform (at least for now).

Until they bring this to on platform, we wont be getting too far with this.

Jucamola commented 1 year ago

It looks like something can be done with Flows, but also like it should be illegal :P https://www.jamessimone.net/blog/joys-of-apex/dynamic-lwc-creation/