Option A is the correct answer. The @wire decorator is used in conjunction with getRecord from lightning/uiRecordApi to retrieve a record from Salesforce. The syntax @wire(getRecord, { recordId: '$recordId', fields: '$fields' }) sets up a reactive property, which means it will automatically rerun whenever the recordId or fields property changes.
[References:, Get Record Data, ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit