What are two best practices when it comes to Lightning Web Component events?
Suggested Answer: A, C
Get Premium DEX-450 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
13 comments · newest first
LA
Lauran
12 months ago
I thought event.target was a no-go for shadow DOM stuff?
DE
Denny
12 months ago
Totally agree with C! CustomEvent is super handy.
CH
Cherilyn
12 months ago
Wait, are we really using bubbles: false? Seems counterintuitive.
ST
Staci
1 year ago
I think A is also important for cross-shadow communication.
QU
Queen
1 year ago
Definitely C and D are the way to go!
RY
Ryan
1 year ago
I think we discussed that events with bubbles: false and composed: false aren't really best practices. They limit the event's reach, right?
MA
Malika
1 year ago
I recall that using event.detail is important for communicating within the same shadow tree. It makes sense, but I hope I remember the specifics correctly.
LA
Lashonda
1 year ago
I'm not so sure about the event.target thing. I remember something about it, but it seems a bit tricky when dealing with shadow DOM.
CA
Carol
1 year ago
I think using CustomEvent to pass data from a child to a parent component is definitely a best practice. It feels right based on what we practiced.
SK
Skye
1 year ago
Hmm, this is a tricky one. I know diabetes can cause some serious issues, so I'll need to think carefully about the best approach here.
TH
Theron
1 year ago
Not sure about this one. I'll have to think it through carefully and eliminate the options that don't make sense based on the information provided.
RE
Reiko
1 year ago
Okay, let's see... I think the Central Admin Server and Managed Backup Exec Server need to be configured, and the NDMP option must be installed. That's my best guess.
AN
Antione
1 year ago
I remember practicing a similar question, and I think security groups and maybe 2-Factor authentication could be the right combo.