Is LWC development possible to have utility libraries?

182    Asked by DianaCampbell in Salesforce , Asked on Sep 11, 2023

Whenever I develop LWCs, it feels like wrapping apex requests in more straightforward functions or giving custom error handling (with showing toasts, etc...). I am reinventing the wheel. Maybe for the LWC library, there are some utility-like projects (like Apache Commons for Java). What are they?

Answered by Danna sahi

Currently, there are not so many projects for extending LWC functionality. I have found that: Lightning Web Components Recipes Although this is not exactly an extension library, it contains many examples of how you can write your LWC code well. Salesforce Lookup Component This generic & customizable lookup component was built using Salesforce Lightning Web Components and SLDS style. You have full control of its data source, so it does not rely on third-party libraries. There is still no standard LWC with lookup functionality, so it may be helpful.



Your Answer

Interviews

Parent Categories