Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Certified Platform Developer II topic 1 question 218 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 218
Topic #: 1
[All Certified Platform Developer II Questions]

A developer creates an application event that has triggered an infinite loop.
What may have caused this problem?

  • A. The event handler calls a trigger
  • B. The event has multiple handlers registered in the project
  • C. An event is fired 'ontouchend' and is unhandled
  • D. The event is fired from a custom renderer
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
corpex
3 weeks, 1 day ago
From this url seems to be D: "Don't Fire an Event in a Renderer Firing an event in a renderer can cause an infinite rendering loop." https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_anti_patterns.htm
upvoted 1 times
...
Yas010101
4 months ago
Selected Answer: A
The event handler calls a trigger
upvoted 1 times
...
RegNav
12 months ago
The renderer of an Aura component should not fire any event. Doing so can cause an infinite rendering loop. Instead, the init handler can be used to run a controller action after construction of the component but before rendering.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...