Skip to content

ComponentEx.hasLoadErrors method

ComponentEx › hasLoadErrors

Returns whether the most recent load recorded any failure.

Reflects the outcome of the last load / loadWithPromises: true when onloadAsync or any child's load threw (synchronously or asynchronously). Unlike loadWithPromises, reading this does NOT re-raise the collected errors — it lets a bystander (e.g. a layout-ready handler awaiting the in-flight load) tell whether the load succeeded without adopting a failure that the load's owner is already responsible for.

Signature:

hasLoadErrors(): boolean

Returns: booleantrue if the last load recorded at least one error, otherwise false.