ionic-super-tabs icon indicating copy to clipboard operation
ionic-super-tabs copied to clipboard

Lazy loadingn not working - unloadWhenInvisible doing nothing

Open alexanderbelokon-mway opened this issue 3 years ago • 2 comments

Describe the bug Even though in the config lazyLoading and unloadWhenInvisible are both on true, the elements are loaded in the DOM.

To Reproduce Steps to reproduce the behavior:

  1. Template:
<super-tabs [config]="config" tabChange="onTabChange($event)">
     <ng-container *ngFor="let tab of superTabs">
       <super-tab>
         <ng-template [ngComponentOutlet]="tab.component"></ng-template>
       </super-tab>
     <ng-container>
</super-tabs> 
  1. Config:
  this.config = {
    lazyLoad: true,
    unloadWhenInvisible: true,
  };

Expected behavior The content of <super-tab> should be not loaded until the tab is active.

alexanderbelokon-mway avatar Mar 21 '21 21:03 alexanderbelokon-mway

I cannot find these properties in the documentation. Any update on this? Is there a beta that we can try? we're sort of desperate to implement this in our application.

chitkosarvesh avatar Jul 28 '21 05:07 chitkosarvesh

Also messing with this, seems like lazy loading should really be supported since it's the default behavior in ionic

novalain avatar Apr 13 '23 09:04 novalain