@esfaenza/core 15.2.316 → 15.2.317

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1206,10 +1206,10 @@ class AppState {
1206
1206
  this.intercom.inbounds.subscribe((t) => { this.handleInboundMessage(t); });
1207
1207
  }
1208
1208
  getActiveJaceModules() {
1209
- // Recupero i moduli dopo un paio di secondi. mi assicuro che l'injection tree sia stabile.
1209
+ // Recupero i moduli dopo un frame. mi assicuro che l'injection tree sia stabile.
1210
1210
  // Altrimenti l'httpservice che prende l'httpserviceextensions providato da core quando anche l'appstate è providedin root
1211
1211
  // si incasina e va in loop
1212
- setTimeout(() => {
1212
+ requestAnimationFrame(() => {
1213
1213
  let http = this.inj.get(HTTPService);
1214
1214
  if (this.fakeToken) {
1215
1215
  this.Modules = [new ActiveModuleView("Modulo Esempio 1"), new ActiveModuleView("Modulo Esempio 2"), new ActiveModuleView("Modulo Esempio 3")];
@@ -1220,7 +1220,7 @@ class AppState {
1220
1220
  this.Modules = res;
1221
1221
  this.Modules = this.Modules;
1222
1222
  });
1223
- }, 2 * 1000);
1223
+ });
1224
1224
  }
1225
1225
  // Collego le informazioni dell'embedding che devono appoggiarsi all'app state in modo che possano comunicare col resto dell'applicazione
1226
1226
  hookEmbedding() {