appsmith
appsmith copied to clipboard
[Feature]: Whenever code bound to a widget data field is run, it should take the widget into a loading state.
Is there an existing issue for this?
- [X] I have searched the existing issues
Summary
Currently, if an Api or a Query is bound to a widget's data field, and the API/Query is run, the widget is taken into loading state. The Widgets do not go into a loading state when a JS Object function is bound to the data field.
Expected behaviour is for the Widgets to go into a loading state when:
- Any JS object function bound to a data field is executing.
- Any code written inside the data field property is executing.
Why should this be worked on?
We should work on this to maintain consistency in the loading behaviour when a API, Query and JS object function is bound to a data field.
Same use case, need to animate loading in the table when the data is being fetched from the TestDetails.onSelectEval() method.
This also doesn't works with charts. This is a major issue, as users don't understand when data is loading, and hence they think that there is an error, as chart shows No chart to display message instead of empty or showing any loader.