Ngb-tabset with [destroyOnHide]="true" throwing error ERROR RangeError: Maximu

Posted by: kun.leeing on 5 June 2019, 3:27 pm EST

    • Post Options:
    • Link

    Posted 5 June 2019, 3:27 pm EST

    Hi Experts,

    Using ngb-tabset, doing some logic in onTabChange($event).

    <ngb-tabset *ngIf=“!isLoading” class=“tabs-top secondary max-height” [destroyOnHide]=“true” (tabChange)=“onTabChange($event)” #summarytab>

    if set [destroyOnHide]=“false”, then everything seems ok.

    Since the data load is quite big and rendering really takes long time. Then I was trying to set [destroyOnHide]=“true” to avoid the time cost when switching Tabs.

    But it seriously throw a bunch of Errors RangeError: Maximum call stack size exceeded. Not sure what reason is this.

    Could someone please help on this?

    Cheers,

    Kun

  • Posted 5 June 2019, 5:10 pm EST

    Hi guys,

    please ignore this one, I have found the issue and fix it.

    Thanks.

  • Posted 6 June 2019, 2:07 pm EST

    Hello,

    We are glad to know that you have resolved your issue by yourself.

    Regards,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels