lwc-recipes
lwc-recipes copied to clipboard
A collection of easy-to-digest code examples for Lightning Web Components on Salesforce Platform
### Summary I've got the Code Tour extension installed but re-opening the LWC rep or command palette > Open Tour doesnt get it to start. I see it in the...
### Summary I'd like to see an implementation of LWCs intended for use in the Lightning Email Template Content Builder. The `LightningStatic__Email` target has been available to create custom components...
### Summary NavigationMixin behaving strangely for only experience builder and only for multi-select picklist Default values are passed to the NavigationMixin. The whole code is working properly in lightning app....
### Summary how to add dynamic value and dynamic field in navigation state context ### Salesforce Org Type Developer Edition Org ### Steps To Reproduce _No response_ ### Current Behavior...
### Summary The wireListView uses getListUi which is deprecated. I tried using the receipe, I see [object object] as output. https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_get_list_ui ### Salesforce Org Type Developer Edition Org ### Steps...
Bumps [@salesforce/sfdx-lwc-jest](https://github.com/salesforce/sfdx-lwc-jest) from 1.1.2 to 1.1.3. Release notes Sourced from @salesforce/sfdx-lwc-jest's releases. v1.1.3 What's Changed Updates from Jest 27 to Jest 29. Upgrade to Jest@28 and latest version of LWC...
### What does this PR do? - Uses `jest.fn()` functions to receive the `lightning/navigation` mock calls so the mock can be reset. - Updates any existing test that used the...
### Summary The `lightning/navigation` mock cannot be reset, so later tests in the same file will read state from earlier tests in the same file. I'll be submitting a PR...
Bumps [husky](https://github.com/typicode/husky) from 8.0.3 to 9.0.11. Release notes Sourced from husky's releases. v9.0.11 chore: update package-lock.json by @btea in typicode/husky#1383 fix: export HUSKY=0 in init (fixes #1393) by @typicode in...
Bumps [@salesforce/sfdx-lwc-jest](https://github.com/salesforce/sfdx-lwc-jest) from 3.1.1 to 4.0.1. Release notes Sourced from @salesforce/sfdx-lwc-jest's releases. v4.0.1 What's Changed chore: update expectedApiVersion to 60 by @nolanlawson in salesforce/sfdx-lwc-jest#348 Full Changelog: https://github.com/salesforce/sfdx-lwc-jest/compare/v4.0.0...v4.0.1 v4.0.0 What's Changed...