A developer is creating an app that contains multiple Lightning web components.
One of the child components is used for navigation purposes. When a user click a button called.. component, the parent component must be alerted so it can navigate to the next page.
How should this be accomplished?
Suggested Answer: D
Get Premium DEX-450 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
EL
Elke
12 months ago
Calling an Apex method for this? That feels like overkill.
EL
Elmira
12 months ago
I’m surprised this isn’t a more common approach in LWC!
CL
Clement
12 months ago
Wait, why not just update a property on the parent? Seems simpler.
ST
Stevie
1 year ago
Definitely agree with that! Custom events are super effective.
LA
Laura
1 year ago
I think creating a custom event is the way to go.
BR
Brynn
1 year ago
I keep getting confused between firing notifications and custom events. I guess both are ways to communicate, but I think custom events are more specific for this scenario.
SL
Slyvia
1 year ago
I practiced a similar question where we had to use events to handle navigation. I think creating a custom event is the way to go for this one.
KA
Kallie
1 year ago
I'm not entirely sure, but I feel like updating a property on the parent could work too. It seems simpler, but does it really notify the parent properly?
QU
Quinn
1 year ago
I remember we talked about using custom events for communication between components. I think that might be the right approach here.
GE
Gearldine
1 year ago
I'm a bit confused by the question. Can we share storage between vSAN clusters in this way? I'll need to review the vSAN documentation to make sure I understand the capabilities.
NO
Noel
1 year ago
Hmm, this seems straightforward. I think the new state will be "Duplicated" since that's the option that makes the most sense when clicking the "Mark Duplicate" button.
LI
Lisandra
1 year ago
A mobile-optimized website is definitely the way to go here. That's got to be the key concern they're getting at.