Why is refreshGraphQL not updating the LWC wire?
Question: I am using the @wire(graphql) adapter in a Lightning Web Component (LWC) to fetch data. The data is processed as follows: I also have a method to refresh the GraphQL query: However, calling the refresh() method successfully fetches new data, as verified through the Chrome DevTools network tab, but…
Why doesn’t NavigationMixin work in Lightning Modal or Child Components?
Question: When using NavigationMixin within a child component or in a Lightning modal, the GenerateUrl method doesn’t seem to work as expected. The result returned by the promise is null, and I’m not sure if this is the designed behavior or an issue. Here’s an example of the test code…
Setting Lightning Datatable Width for Horizontal Scrolling?
Question When configuring a related list in a Lightning page, the rendered table has a <div> with a specific width derived from column widths, allowing horizontal scrolling. This prevents columns from being squished while ensuring users can scroll to view all data. In a custom Lightning Web Component (LWC) using…
Calling Salesforce API from a Lightning Component?
I need to call the Apex Wrapper Metadata API from a Lightning component. The issue is that there is no native support for acquiring a valid API session ID from an @AuraEnabled method in a Lightning component’s Apex controller. Salesforce documentation suggests using a Named Credential to bypass this security…
Decorators in Lightning Web Components (LWC)
Lightning Web Components (LWC) use decorators to modify or enhance the behavior of JavaScript functions and properties dynamically. These decorators help in managing the flow of data between components and provide reactive properties. What are Decorators in Lightning Web Components? A Decorator is a design pattern in JavaScript that allows…
Mastering JavaScript Methods for LWC and Aura Components
JavaScript methods are essential for manipulating data in Lightning Web Components (LWC) and Aura Components. A strong grasp of these methods enhances development efficiency and scalability. Below, we explore a variety of methods with unique examples, categorized for easy understanding. 1. forEach(), keys(), and values() in Set Definition: forEach() executes…
Unable to Embed Experience Cloud Site in iframe?
I have an OmniScript hosted on an Experience Cloud site. Within this OmniScript, I want to display another Experience Cloud site using an LWC component that contains an iframe. However, when I attempt to load the second Experience Cloud site inside the iframe, I encounter the error: Additionally, the browser…
Reusing Lightning Components in Aura: Is It Possible?
Question: I need to create a form in an Aura component that allows users to select 3 out of 5 products. This functionality is similar to the “Order > Add Product” modal in Salesforce. Is there a way to reuse that built-in Lightning UI component within my Aura component markup?…
Deloitte Salesforce LWC Interview Questions
Table Of Contents Preparing for a Deloitte Salesforce LWC interview requires more than just basic knowledge of Lightning Web Components (LWC). In my experience, Deloitte looks for developers who have a deep understanding of LWC architecture, component lifecycle, and proficiency in JavaScript, Apex, and CSS to create dynamic and responsive…
LWC Interview Questions for 5 years experience
Tabale Of Contents: 1. What are Lightning Web Components (LWC) and why were they introduced in Salesforce? Lightning Web Components (LWC) is a modern framework introduced by Salesforce to simplify the development of web components by using native browser APIs. It was created to enhance the development process and improve…



