Add `onLoadError` to handle error load
JialuGong opened this issue · 0 comments
JialuGong commented
If there is a loading error and the user has set loadedKeys , onLoad cannot handle this situation and may cause infinity loop. Following is an example
I notice onLoad function only be called when the promise is fulfilled. And the user can only cope with loadedKeys in loadData function when there is a loading error.
I wonder if it is possible to add an onLoadError prop to handler loading error situation, which is just like following