Salesforce trying to optimize performance by caching components on the client-side. This is awesome for the end-users because page loads will faster. This is a lot less awesome for developers when developing lightning components because they may think that the code is wrong. Often they have to hit hard refresh a few times while you wait for the cache to clear.Continue reading How to fix the caching problem in Salesforce Lighting Component
Sometimes you need to execute code before submitting the form and set or modify some fields on sObject.
For example, you have the following lightning-record-edit-form for Account sObject.Continue reading LWC: lightning-record-edit-form — set or modify field values onsubmit
Now you can build Lightning components using two programming models: Lightning Web Components, and the original model, Aura Components.
Most of the projects consist of Aura Components but more and more developers trying to use LWC for new components. Developers faced with the issue to use common functions in Aura and Lightning Web Components.
The solution is pretty simple:Continue reading How to share a code between Aura and Lightning Web component