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

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

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
6 months, 3 weeks 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 2 times
...
Yas010101
10 months, 1 week ago
Selected Answer: A
The event handler calls a trigger
upvoted 1 times
...
RegNav
1 year, 6 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 ...