diff --git a/instructions/lwc.instructions.md b/instructions/lwc.instructions.md index 336a4a5e..3675b0da 100644 --- a/instructions/lwc.instructions.md +++ b/instructions/lwc.instructions.md @@ -283,6 +283,8 @@ handleToggleChange(event) { import { getRecord } from 'lightning/uiRecordApi'; import { getObjectInfo } from 'lightning/uiObjectInfoApi'; +const FIELDS = ['Account.Name', 'Account.Industry', 'Account.AnnualRevenue']; + export default class MyComponent extends LightningElement { @api recordId; @@ -323,6 +325,10 @@ export default class MyComponent extends LightningElement { } } + performOperation() { + // Developer-defined async operation + } + showSuccessToast() { const event = new ShowToastEvent({ title: 'Success', @@ -378,12 +384,14 @@ Prefer `lwc:if`, `lwc:elseif` and `lwc:else` for conditional rendering (API v58. {error.message} -