I was working on a page in Aura component and the page is loaded on click of a button from a related list(It can also load from a quick Action button). AURA components have a behavior that a component loads with value in cache memory. Which means, AURA component can sometimes load the previously clicked value from URL. Behavior is unpredictable. Which means, Component can load updated value or it can also load previous URL parameter value. For which user may have to click refresh button to load new info.
Continue reading “AURA: Updated URL Parameter Value in JS File”Tag: LAC
AURA: Clear cache while loading a Lightning Component.
Usually because of cachable=true in apex class, you see results in lightning Aura component same as previous one, Event thought the records are updates, you do not see any updated values. To prevent Lightning aura component from loading component with same results we need to clear cached value.
To clear cache, you have to fire refreshview on component as shown below.
Continue reading “AURA: Clear cache while loading a Lightning Component.”LWC: How to create Lightning Message Channel?
You need Lightning Message Channel for Lightning Web Component Message Service to work. Below are the steps with which you can create Lightning Message Channel.
Continue reading “LWC: How to create Lightning Message Channel?”Create a JSON string in JavaScript
Sometimes we might need to create a custom JSON string in a JavaScript section. Custom JSON string means, it can have any field which is or is not in any sObjects. There are multiple ways to create JSON string.
Continue reading “Create a JSON string in JavaScript”