Determine The Origin Of A Lightning Web Component (LWC)
Situation Frequently, we encounter situations where a Lightning Web Component (LWC) needs to exist both within a community for external users and the app builder for internal users. Let’s explore a method to determine the component’s source of access, enabling conditional rendering of design/CSS. To achieve this, we’ll leverage the connectedCallback() lifecycle hook to retrieve …
Determine The Origin Of A Lightning Web Component (LWC) Read More »