Thanks to visit codestin.com
Credit goes to github.com

Skip to content

madmax983/lwc-utils

 
 

Repository files navigation

LWC Service Modules

Rewrite of Service Components Framework (Aura) but with Lightning Web Components (LWC). This repository includes all my previous Service Components for easy side-by-side comparison.

side-by-side

Install with SFDX

SFDX CLI and VSCode has matured enough for general usage so I will be moving my repo to SFDX format only.

For VSCode and SFDX setup see steps (1 and 2) from the official lwc-recipes repo. Once you have the SFDX CLI set up and Authed into a Dev Hub you can then:

  1. Open VSCode, then open terminal with ctrl+` then clone lwc-utils.
git clone https://github.com/tsalb/lwc-utils
  1. Use Command Palette to SFDX: Create a Default Scratch Org .

  2. Use Command Palette to SFDX: Push Source to Default Scratch Org.

  3. Use Command Pellete to SFDX: Open Default Org.

Install with unlocked package

Coming later (maybe)...

Service Components Framework (Aura)

See Readme for any Aura component usage.

Datatable Service (LWC @wire and imperative)

Two samples:

  1. An @wire child template component fed by a reactive attribute that emits events on success/error.
  2. An imperative callout using async await that uses promises in the returning tableResults.

Parent relationships (1 level up) are working okay. It's safer to use formulas still, for now.

side-by-side

About

LWC service modules alongside Aura service component framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.7%
  • Apex 33.9%
  • HTML 4.4%