ionic-super-tabs
ionic-super-tabs copied to clipboard
Lazy loadingn not working - unloadWhenInvisible doing nothing
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:
- 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>
- Config:
this.config = {
lazyLoad: true,
unloadWhenInvisible: true,
};
Expected behavior
The content of <super-tab>
should be not loaded until the tab is active.
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.
Also messing with this, seems like lazy loading should really be supported since it's the default behavior in ionic