I have been trying to solve a performance issue on calling getSourceData method, and I found below issue on Github. The suggested method was to directly reference the source data object, but I found out that hotInstance.view.settings.data contains a dataset which looks identical to the source data. Can I use this data instead of the getSourceData? Also, what is the role of the view property? I cannot find it in the API document.
I’m not sure what is the problem you are describing here. Does that reference hotInstance.view.settings.datasolve your performance issue as per my suggestion in the original topic?
The problem is that calling getSourceData method takes a long time and it blocks the main thread which affects UI performance. I understand that it returns a cloned data and might affect the performance if the size of the source data is large.
hotInstance.view.settings.data seems to return the identical result compared to the getSourceData method and it actually does solve the performance issue. However, I would like to know the purpose of this property and whether it is safe to use it since it is not listed in the official document.