ComponentEx.loadWithPromises method
ComponentEx › loadWithPromises
Loads the component with promises.Unlike
load, this method never rejects with an individual error: every failure raised by onloadAsync or a child's load is collected, and once everything settles the returned Promise rejects with a single AggregateError holding all of them. Non-Error throwables are normalized via ErrorWrapper.create.Signature:
loadWithPromises(): null | Promise<void>Returns: null | Promise<void> — A Promise that resolves when the component and its children finish loading, rejects with an AggregateError if any load step failed, or null if the component and its children don't use async logic and none failed synchronously.