top of page
  • Writer's pictureArup Roy

AURA Not “EXIT”, Yes… AURA & LWC "Co-Exist" !!! How 2 Deal ?

Updated: Mar 4, 2020

LWC, The new revolution from salesforce that change the era of web development under the hood of salesforce. This new programming model is introduced with keeping three principles in mind:


💡 Line up with modern web principles.

💡 Interoperability with existing Lightning Aura component development model.

💡 Increase performance: It combines Web Components programming model with the Salesforce metadata and services thus providing an unmatched level of performance and productivity.


Some cherry on the cake with LWC:


✔️ To make LWC Standardized, it built on ES6+ which exposed developers with the modern and advanced JavaScript features.


✔️ LWC maintains a good security with adding CSS isolation, script isolation, DOM isolation, and a more limited event scope.


✔️ LWC performs much better due to leveraging native DOM support feature.


✔️ LWC can be unit tested with the Jest framework, npm and Jest should be installed on the Developer’s machine to be able to run them.


✔️ To align with modern web principal, the component bundle get also simplifies compared with AURA bundle for developer that help to adopt LWC as Open Source (OSS) for non lightning developer.


Now the Question is :


Due to LWC’s advantages, does it mean that Every Aura component should be transformed into a Lightning Web Component?

In order to answer the question about refactoring, it is good to follow the guidance of Decision Matrix provided by Salesforce itself. But at high level, we can say that :


When co exist scenario come, which may be a part of business application, it is needed to check if any benefit can be obtained from migrating them into Lightning Web Components. If existing components are simple and render time performance is acceptable, there is no need to rewrite them. Otherwise,


📐 There are options either rewriting every component into LWC.


OR


📐 Refactoring only some of the children components, which have the worst performance.


With due respect to existing AURA and VF page, Lightning Message Service introduce that provides a simple API to publish messages throughout Lightning Experience and subscribe to messages that originated from anywhere within Lightning Experience.

Actually Salesforce introduce LWC to open the door of options for Developers who even stand on land of AURA but can expand in SKY of Current Web Stack with interoperates flawlessly with existing code. Additionally in Lightning Platform, the combo package of LWC and Salesforce Metadata, provides an extraordinary level of productivity, performance and compatible !


⚡ You can stand on land of AURA, BUT don't wait to expand your skill-wings in LWC Sky... 🌩️

153 views0 comments

Comments


bottom of page