A developer creates an application event that has triggered an infinite loop.
What may have caused this problem?
A developer creates an application event that has triggered an infinite loop.
What may have caused this problem?
An infinite loop in the context of application events is often caused by the event handler triggering another event repeatedly. If the event handler calls a trigger, it can continuously re-fire the event, leading to an infinite loop. This creates a cycle where the event never stops firing, consuming resources and potentially causing the application to crash.
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.
The event handler calls a trigger
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