private async init()

in packages/core/alfa-core/src/base.tsx [114:158]


  private async init(config: IAppConfig) {
    const {
      name,
      container,
      manifest,
      props,
      deps,
      url,
      beforeMount,
      afterMount,
      beforeUnmount,
      afterUnmount,
      beforeUpdate,
      sandbox,
      noCache,
      // logger,
      ...extendedConfig
    } = config;

    const app = await createMicroApp({
      name,
      dom: container,
      manifest,
      customProps: props,
      deps,
      url,
      // logger,
      noCache,

      appWillMount: beforeMount,
      appDidMount: afterMount,
      appWillUnmount: beforeUnmount,
      appDidUnmount: afterUnmount,
      appWillUpdate: beforeUpdate,
    }, {
      sandbox,
      // parcel
    });

    return {
      ...config,
      ...extendedConfig,
      app,
    };
  }