5

Is there any limit on a number of rendered components on a single page\within a single Lightning App? Here is an error message that occurs sometimes when many records are rendered in a Lightning App:

"Too many components for aura://ComponentController.getComponent(...)"

So is it a built-in limit on an Aura/Lightning App component instances number? Or is it the framework failing to handle the number of elements of a single component type?

1 Answer 1

3

Per app/cmp there is a 10,000 inner component limit. This number is chosen and enforced by the framework. Source code here.

This was introduced to prevent infinite loop situations where a component included itself in markup repeatedly. It's also an attempt to prevent scenarios that would be detrimental to performance for the app, such as a large number nested loops creating the same or similar component.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .