Open vypsim opened 2 weeks ago
Same here – we also have components relying on ngOnInit logic which is broken right now.
In addition, the components that are in the tabs are tables with many records and we introduced lazy loading for performance reasons, precisely so that the content of all the tabs is not in the DOM at the same time
What problem does this feature solve?
The behavior of nz-tab has changed in sync ant-design v4.23.6 PR
Previously, when a lazy-loaded tab is inactive, then its content is destroyed. This has been changed as shown in the link above to keep the content rendered even if the tab is inactive.
This has been a breaking change for some components in our app that were relying on ngOnInit logic executed when the tab is activated for example.
But more importantly, we have some tabs that have active websocket subscriptions that can be resource intensive and ideally they shouldn't be polling data or keeping that subscription to the backend active when their content is not visible.
Can you please provide a suitable replacement for the old behavior.
What does the proposed API look like?
OR