appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Feature]: Whenever code bound to a widget data field is run, it should take the widget into a loading state.

Open satbir121 opened this issue 1 year ago • 1 comments

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:

  1. Any JS object function bound to a data field is executing.
  2. 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.

satbir121 avatar Nov 14 '23 11:11 satbir121

Same use case, need to animate loading in the table when the data is being fetched from the TestDetails.onSelectEval() method.

image

codenameakshay avatar Feb 16 '24 07:02 codenameakshay

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. image

codenameakshay avatar Feb 23 '24 11:02 codenameakshay