loadAll() {
          console.log('PI: $model "loadAll"');
          console.time('AXIOS: Getting all app models...');
          const queue = new PQueue({ concurrency: ctx.app.$api.maxConcurrency });

          _(this.allKeysInApp()).forEach(key => {
            queue.add(() => ctx.store.dispatch('loadModelByKey', { key }));
          });

          // Once the queue is empty we end the timer, logging the overall duration
          queue.onEmpty().then(() => {
            console.timeEnd('AXIOS: Getting all app models...');
            return;
          });
        }
/** Load all models configured for this app */
Load all models configured for this app
Load all models configured for this app
loadAll() {
          console.log('PI: $model "loadAll"');
          console.time('AXIOS: Getting all app models...');
          const queue = new PQueue({ concurrency: ctx.app.$api.maxConcurrency });
          _(this.allKeysInApp()).forEach(key => {
            queue.add(() => ctx.store.dispatch('loadModelByKey', { key }));
          });
          queue.onEmpty().then(() => {
            console.timeEnd('AXIOS: Getting all app models...');
            return;
          });
        }
loadAll ( ) { console . log ( 'PI: $model "loadAll"' ) ; console . time ( 'AXIOS: Getting all app models...' ) ; const queue = new PQueue ( { concurrency : ctx . app . $api . maxConcurrency } ) ; _ ( this . allKeysInApp ( ) ) . forEach ( key => { queue . add ( ( ) => ctx . store . dispatch ( 'loadModelByKey' , { key } ) ) ; } ) ; queue . onEmpty ( ) . then ( ( ) => { console . timeEnd ( 'AXIOS: Getting all app models...' ) ; return ; } ) ; }
Load all models configured for this app
Load all models configured for this app
// Once the queue is empty we end the timer, logging the overall duration