Function: resolveComponent()
Function: resolveComponent()
function resolveComponent<T>(container, metaComponent?): Promise<undefined | T>;
Resolve the event handler for the component.
Can also resolve dynamically loaded components.
Type Parameters
T
T
= | IPageLayout
| IPage
<ReactIncomingEvent
, unknown
> | IErrorPage
<ReactIncomingEvent
, unknown
>
Parameters
container
Container
The service container.
metaComponent?
The meta component event handler.
MetaPageLayout
| MetaPage
<ReactIncomingEvent
, unknown
> | MetaErrorPage
<ReactIncomingEvent
, unknown
>
Returns
Promise
<undefined
| T
>
The resolved element type.