Static getWill return names of all registered shared libraries in ILC-Registry
const sharedLibNames = await ILC.getAllSharedLibNames();
Static mountWill create and mount a single-spa parcel. See details here.
const parcel = ILC.mountRootParcel(() => ILC.importParcelFromApp('@portal/people', 'person'), {
prop1: 'value1',
domElement: document.getElementById('a-div'),
});
Static getStatic importAllows to fetch Parcel from the application and inject it with ILC specific configuration.
import Parcel from 'single-spa-react/parcel';
<Parcel
config={() => ILC.importParcelFromApp('@portal/people', 'person')}
wrapWith="div"
prop1="value1"
/>
Static isStatic loadOptional options: { Optional injectStatic navigateCan be used for programmatic route change at simple apps. Localization of the URL will be done automatically.
Static unloadGenerated using TypeDoc
ILC exposes some utility APIs globally at
window.ILC. Here we provide convenience typings to use with typescript.Example