ComponentEx.getInFlightLoadPromise method
ComponentEx › getInFlightLoadPromise
Returns the component's in-flight loadPromise (its onloadAsync plus children), or null when nothing is loading — either the component loaded fully synchronously or its async load has already settled.Lets a caller scheduled while the component is still loading await the async load tail before acting, instead of racing it. The motivating case is a layout-ready handler (see
LayoutReadyComponent) that fires because the component was loaded after the workspace layout was already ready: Component.onload has run (so _loaded is set) but onloadAsync may not have finished.Signature:
getInFlightLoadPromise(): null | Promise<void>Returns: null | Promise<void> — The in-flight load promise, or null if no load is in flight.