We had a very long loading time in our application. The cause was a null pointer exception for the hotRegister.getInstance. So that hotRegister.getInstance is not undefined, we now use afterInit. Now the data is no longer displayed. Only when we switch to another component and back, the data will appear.
Could you please help us further?
@Input()
set leadTimesInfo(leadTimesInfo: LeadTimesInfo[]) {
this.leadTimesInfos = leadTimesInfo;
...
this.hotSettings.afterInit = () => {
this.hotRegisterer.getInstance(this.hotId).updateSettings(this.hotSettings);
...
}
...
this.hotData = this.extractData(leadTimesInfoMap, colHeaders, rowHeaders);
}