Salesforce
PDII · Question #390
As part of a custom interface, a developer team creates various new Lightning web components. Each of the components handles errors using toast messages. When the development is complete, all the…
The correct answer is A. Use a [template] tag to display in-place error messages B. Use public properties on each component to display the error messages. See the full explanation below for the reasoning.
Question
As part of a custom interface, a developer team creates various new Lightning web components. Each of the components handles errors using toast messages. When the development is complete, all the components are added to the same Lightning page. During acceptance testing, users complain about the long chain of toast messages that display when errors occur loading the components. Which two techniques should the developer implement to improve the user experience? (Choose two.)
Options
- AUse a [template] tag to display in-place error messages
- BUse public properties on each component to display the error messages
- CUse the window.alert() method to display the error messages.
- DUse a Lightning web component to aggregate and display all errors.
How the community answered
(19 responses)- A74% (14)
- C16% (3)
- D11% (2)
Community Discussion
No community discussion yet for this question.