What should the developer change to allow this?

A developer is creating a Lightning web component that contains a child component. The property stage is being passed from the parent to the child. The public property is changing, but the setOppList function is not being invoked.

What should the developer change to allow this?
A . Move the logic from connectedCalIback() to constructor().
B. Create a custom event from the parent component to set the property.
C. Move the logic from connectedCallback() nto renderedCallback().
D. Move the logic to a getter/setter pair.

Answer: D

Latest PDII Practice Questions with 280 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments