Await loadData rendering?

Hi,

Is there any way to wait for a loadData call to finish rendering? I’m trying to integrate Handsontable with EmberJS, and I’m experiencing an issue where Ember tries to reload the data while I believe Handsontable is still churning, thus causing some race conditions. But if loadData returned a promise or something, I could effectively debounce the Ember update. Is there any sort of way to check if Handsontable is currently rendering something?

Thanks,
Asher

Hi @asherlc
If I’m getting the idea you can pass your Ember update inside a afterRender() callback. Did you tried it?

The beforeRender and afterRender callbacks allowed me to cobble together my own promise to await, but it would be very helpful if a promise were natively available, which would enable libraries like http://ember-concurrency.com/ to monitor it

Hi @asherlc

Another hook which can fit to your needs is afterLoadData. About promises we currently focusing on fixing bugs and trying to make Handsontable more solid and stable. Currently we don’t have any plans to add Promises internally to Handsontable.