Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Lightning Web Components Overview

Lightning Web Components (LWC) is a programming model used to build custom HTML elements. These custom elements, the web components, are made using HTML and modern JavaScript. Because of this, LWC is an efficient way to add high-performing custom elements. LWC is an open-source technology. Like any other Javascript framework (example: Angular, React), Pulsar can run custom HTML/JS apps written in LWC even when offline as long as they are using the data layer API Pulsar provides.

For more information about Lightning Web Components, refer to https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.get_started_introduction.

Lightning Data Service Overview

Lightning Data Service (LDS) caches and shares records across components. LDS provides performance improvements by loading a record only once for use by multiple records on a page. LDS manages data for you, and changes to a record are reflected in all components using that record. LDS is built on top of the User Interface API (UI API), making it easy to create Salesforce pages. These pages are efficient because data requests return both data and metadata.

...

LDS is not an open-source technology. It requires the Salesforce server to run.

...

For more information about Lightning Data Server, refer to https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.data_ui_api.

Do LWC apps using LDS work with Pulsar in offline mode?

Unless Salesforce decides to open-source the Lightning Data Service, only Salesforce can run both the apps using Lightning Web Components and the Lightning Data Service at this time. This means that you must be online to update pages using these technologies. They may work offline with the cached data for SF or SFS Mobile, but they will not work with Pulsarwithin Pulsar if you are offline since the LDS framework is not available because it’s not published for integration by Salesforce.

If you have an LWC app that can be published as a link/URL, it certainly can be accessed within Pulsar by launching in a webview when you are online.