@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.
@@ -1209,10 +1209,10 @@ class AppState {
1209
1209
  this.intercom.inbounds.subscribe((t) => { this.handleInboundMessage(t); });
1210
1210
  }
1211
1211
  getActiveJaceModules() {
1212
- // Recupero i moduli dopo un paio di secondi. mi assicuro che l'injection tree sia stabile.
1212
+ // Recupero i moduli dopo un frame. mi assicuro che l'injection tree sia stabile.
1213
1213
  // Altrimenti l'httpservice che prende l'httpserviceextensions providato da core quando anche l'appstate è providedin root
1214
1214
  // si incasina e va in loop
1215
- setTimeout(() => {
1215
+ requestAnimationFrame(() => {
1216
1216
  let http = this.inj.get(HTTPService);
1217
1217
  if (this.fakeToken) {
1218
1218
  this.Modules = [new ActiveModuleView("Modulo Esempio 1"), new ActiveModuleView("Modulo Esempio 2"), new ActiveModuleView("Modulo Esempio 3")];
@@ -1223,7 +1223,7 @@ class AppState {
1223
1223
  this.Modules = res;
1224
1224
  this.Modules = this.Modules;
1225
1225
  });
1226
- }, 2 * 1000);
1226
+ });
1227
1227
  }
1228
1228
  // Collego le informazioni dell'embedding che devono appoggiarsi all'app state in modo che possano comunicare col resto dell'applicazione
1229
1229
  hookEmbedding() {