Hello, im trying around with the new loading_indicator option, which is really useful, but somehow shows the loading indicator even when a parameter changes which is not bound to the actual method the loading indicator is applied on.
With the minimal example here:
class MinimalLoadingExample(param.Parameterized):
some_param = param.Integer()
some_other_param = param.Integer()
def panel(self):
return pn.Row(
self.param,
pn.panel(self.view, loading_indicator=True)
)
@pn.depends("some_param")
def view(self):
return pn.Row(self.some_param, self.some_other_param)
minimal_loading_example = MinimalLoadingExample()
minimal_loading_example.panel().servable()
when some_param is changed, the view is correctly updated and a loading indicator is shown and then removed.
If i change some_other_param, the loading indicator is also shown but is then never removed.
The Docs for ParamMethod here https://panel.holoviz.org/_modules/panel/param.html say:
By default ParamMethod will watch all parameters on the class owning
the method or can be restricted to certain parameters by annotating
the method using the param.depends decorator.
So i would have thought that the loading indicator is only shown when some_param changes?
I guess it the loading indicator shouldnt have started in the first place, and that it does not stop because the actual parameter it depends on does not finish or so?