Isomorphic API that can be used during SSR & CSR. Documentation
Optional
appThe appWrapperData object identifies that application execution is controlled by Wrapper The namespace contains params that identifies Wrapper appWrapperData.appId identifier of Wrapper
Returns ref to HTMLElement
that should be used as container to render app's content
App MUST use it to propagate all unhandled errors. Usually it's used in app's adapter.
Base path that is relative to the matched route.
So for reqUrl = /a/b/c?d=1
& matched route /a/*
base path will be /a/
.
While for reqUrl = /a/b/c?d=1
& matched route /a/b/c
base path will be /a/b/c
.
Returns Props that were defined for current path
Optional
getReturns Props that were defined for wrapped app. Method available only for wrappers
Each application is provided a mountParcel
function. The main advantage to using an applications mountParcel
function
is that parcels mounted via an applications mountParcel
will be automatically unmounted when the application is unmounted.
Unique application ID, if same app will be rendered twice on a page - it will get different IDs
Allows to perform rendering of the target app. Returns promise which resolves after target app mount. See more details in ILC App Wrappers documentation.
Generated using TypeDoc
Describes all properties that are passed by ILC & single-spa to the application wrapper lifecycle Fns