Timeouts

Sub-applications allow setting timeout times in the following stage.

Entry Fetching

You can set a timeout by using entry.timeout:

container.registerApp({
  name: "foo",
  entry: {
    url: "https://foo.com/entry",
    timeout: 5000,
  },
  activeWhen: "/foo",
});

Lifecycles

  • load, this includes the total time required to request the necessary static resources, execute JS code to process CSS, and so on
  • bootstrap lifecycle, including app.lifecycle.beforebootstrap/afterbootstrap consumption of time;
  • mount lifecycle, including app.lifecycle.beforemount/aftermount consumption of time;
  • unmount lifecycle, including app.lifecycle.beforeunmount/afterunmount consumption of time;
  • update lifecycle, including app.lifecycle.beforeupdate/afterupdate consumption of time
container.registerApp({
  name: "foo",
  entry: "https://foo.com/entry",
  timeouts: {
    load: 5000,
    bootstrap: 4000,
    mount: 3000,
    unmount: 3000,
    update: 3000,
  },
  activeWhen: "/foo",
});